-
Entity
Class
Abstract base class for all EF Core entities. It contains common audit properties and the
timestamp property.Derive from this class and add an Id property with the desired Id type.
- Entity()
Constructor
Default .ctor. Initializes the Id and sets CreateUtc and UpdateUtc
to the current UTC date/time. - CreateUserId
Property
UserId of the person who created the entity. - CreateUtc
Property
UTC date/time when the entity was created. - Timestamp
Property
SQL Server timestamp field, used for concurrency checking. - UpdateUserId
Property
UserId of the person who last updated the entity. - UpdateUtc
Property
UTC date/time when the entity was last updated.
- Entity()
-
EntityHelper
Class
Methods to help with Entity objects.- InitializeDates(IEntity)
Method
Common method to initialize the CreateUtc and UpdateUtc properties on classes that
implement IEntity.
- InitializeDates(IEntity)
-
GuidIdEntity
Class
Abstract base class for all EF Core entities. It contains common audit properties and the
timestamp property.- GuidIdEntity()
Constructor
Default .ctor. Initializes the Id and sets CreateUtc and UpdateUtc
to the current UTC date/time. - Id
Property
The Entity's unique id (primary key). Must be assigned by the client.
- GuidIdEntity()
-
IEntity
Interface
Implemented by Entity, from which all non-Identity entities derive, and also by
any IdentityUser-derived classes.- CreateUserId
Property
UserId of the person who created the entity. - CreateUtc
Property
UTC date/time when the entity was created. - Timestamp
Property
SQL Server timestamp field, used for concurrency checking. - UpdateUserId
Property
UserId of the person who last updated the entity. - UpdateUtc
Property
UTC date/time when the entity was last updated.
- CreateUserId