Creomobile.Data.Abstractions
0.3.0
dotnet add package Creomobile.Data.Abstractions --version 0.3.0
NuGet\Install-Package Creomobile.Data.Abstractions -Version 0.3.0
<PackageReference Include="Creomobile.Data.Abstractions" Version="0.3.0" />
<PackageVersion Include="Creomobile.Data.Abstractions" Version="0.3.0" />
<PackageReference Include="Creomobile.Data.Abstractions" />
paket add Creomobile.Data.Abstractions --version 0.3.0
#r "nuget: Creomobile.Data.Abstractions, 0.3.0"
#:package Creomobile.Data.Abstractions@0.3.0
#addin nuget:?package=Creomobile.Data.Abstractions&version=0.3.0
#tool nuget:?package=Creomobile.Data.Abstractions&version=0.3.0
Creomobile.Data.Abstractions
Core abstractions for data models: entity base types and timestamp contracts.
Overview
Provides base interfaces and classes for defining strongly-typed, persistable entities:
IEntityBase<TId>— an entity with a strongly-typed primary key.EntityBase<TId>— abstract base class implementingIEntityBase<TId>.ICreatedAt— declares a UTC creation timestamp.IUpdatedAt— declares a UTC last-update timestamp.IDeletedAt— declares a nullable UTC deletion timestamp (soft delete).ITimestamps— combinesICreatedAt,IUpdatedAtandIDeletedAt.
The interfaces only declare the properties. Populating them and keeping
soft-deleted entities out of queries is the job of whatever persistence layer
recognizes the contracts — this package deliberately names none, so that an
entity model depending on it depends on no storage technology. All timestamps
are UTC — values must have DateTimeKind.Utc.
Requirements
- .NET 10.
Version 0.2.2 also shipped a net8.0 assembly and 0.2.3 does not — see the changelog. If
you need these contracts on an earlier runtime, open an issue: the package has no
dependencies of its own, so nothing in it forces a recent runtime. The target framework
says what we build and test, not what the code technically needs.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Creomobile.Data.Abstractions:
| Package | Downloads |
|---|---|
|
Creomobile.Data.EFCore.Timestamps
EF Core support for the Creomobile.Data.Abstractions timestamp contracts: automatic CreatedAt/UpdatedAt maintenance and soft delete via DeletedAt |
|
|
Creomobile.Data.EFCore
Opinionated EF Core extensions: camelCase column naming, automatic timestamps and soft delete |
GitHub repositories
This package is not used by any popular GitHub repositories.