Class EntityBase<TKey>
Defines a base definition for an entity.
public abstract class EntityBase<TKey> : IEntityBase<TKey>, IDatedEntity
Type Parameters
TKeyThe type of unique identifier for the entity.
- Inheritance
-
EntityBase<TKey>
- Implements
-
IEntityBase<TKey>
- Inherited Members
- Extension Methods
Properties
CreatedDate
Gets or sets the date of the entity's creation.
public DateTime CreatedDate { get; set; }
Property Value
Id
Gets or sets the identifier of the entity.
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public TKey Id { get; set; }
Property Value
- TKey
UpdatedDate
Gets or sets the date of the entity's last update.
public DateTime? UpdatedDate { get; set; }