Soenneker.Entities.Entity
4.0.697
Prefix Reserved
dotnet add package Soenneker.Entities.Entity --version 4.0.697
NuGet\Install-Package Soenneker.Entities.Entity -Version 4.0.697
<PackageReference Include="Soenneker.Entities.Entity" Version="4.0.697" />
<PackageVersion Include="Soenneker.Entities.Entity" Version="4.0.697" />
<PackageReference Include="Soenneker.Entities.Entity" />
paket add Soenneker.Entities.Entity --version 4.0.697
#r "nuget: Soenneker.Entities.Entity, 4.0.697"
#:package Soenneker.Entities.Entity@4.0.697
#addin nuget:?package=Soenneker.Entities.Entity&version=4.0.697
#tool nuget:?package=Soenneker.Entities.Entity&version=4.0.697
Soenneker.Entities.Entity
A small domain-entity contract and base class containing a string identifier plus creation and modification timestamps. It has no persistence-framework dependency.
Install
dotnet add package Soenneker.Entities.Entity
Derive an entity
using Soenneker.Entities.Entity;
public sealed class Order : Entity
{
public required string CustomerId { get; set; }
public decimal Total { get; set; }
}
var now = DateTimeOffset.UtcNow;
var order = new Order
{
Id = Guid.NewGuid().ToString("N"),
CustomerId = "customer-42",
Total = 125.00m,
CreatedAt = now
};
order.Total = 140.00m;
order.ModifiedAt = DateTimeOffset.UtcNow;
Use IEntity when a domain type already has another base class; derive from Entity when the supplied virtual properties are convenient.
Behavior
Idhas no enforced format. A GUID, database identifier, or compositepartitionKey:documentIdstring is an application convention.CreatedAtdefaults toDateTimeOffset.MinValueunless assigned.ModifiedAtdefaults to null.- The package does not generate identifiers, update timestamps, track changes, enforce optimistic concurrency, or map entities to database documents.
The JSON property names are id, createdAt, and modifiedAt with both System.Text.Json and Newtonsoft.Json. Null omission is controlled by the serializer settings; ModifiedAt = null is not automatically omitted by this package.
| 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
- Newtonsoft.Json (>= 13.0.4)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on Soenneker.Entities.Entity:
| Package | Downloads |
|---|---|
|
Soenneker.Documents.Document
The base document type providing a building block for storage objects |
|
|
Soenneker.Entities.Named
An Entity that also provides a name property |
|
|
Soenneker.AutoFaker.Overrides.Entity
An AutoFaker (AutoBogus) override for the object Entity |
|
|
Soenneker.Extensions.Entities
A collection of helpful Entities extension methods |
|
|
Soenneker.Extensions.Enumerable.Entities
A collection of helpful IEnumerable Entities extension methods |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.697 | 0 | 8/30/2026 |
| 4.0.695 | 9,257 | 7/27/2026 |
| 4.0.694 | 4,175 | 7/16/2026 |
| 4.0.693 | 8,005 | 6/18/2026 |
| 4.0.692 | 6,559 | 6/5/2026 |
| 4.0.691 | 8,940 | 4/22/2026 |
| 4.0.690 | 7,345 | 3/12/2026 |
| 4.0.689 | 320 | 3/12/2026 |
| 4.0.688 | 372 | 3/12/2026 |
| 4.0.687 | 1,741 | 3/12/2026 |
| 4.0.686 | 3,033 | 3/10/2026 |
| 4.0.685 | 2,067 | 3/9/2026 |
| 4.0.684 | 209 | 3/9/2026 |
| 4.0.683 | 779 | 3/9/2026 |
| 4.0.682 | 4,736 | 3/4/2026 |
| 4.0.681 | 16,661 | 1/6/2026 |
| 4.0.680 | 2,090 | 1/2/2026 |
| 4.0.679 | 318 | 1/2/2026 |
| 4.0.678 | 6,998 | 11/20/2025 |
| 4.0.677 | 6,068 | 10/29/2025 |
Clarify base entity contract