Class EntityBase<TKey>
Defines a base definition for an entity.
Inheritance
System.Object
EntityBase<TKey>
Namespace: MADE.Data.EFCore
Assembly: MADE.Data.EFCore.dll
Syntax
public abstract class EntityBase<TKey> : object, IEntityBase<TKey>, IDatedEntity
Type Parameters
Name | Description |
---|---|
TKey | The type of unique identifier for the entity. |
Properties
| Improve this Doc View SourceCreatedDate
Gets or sets the date of the entity's creation.
Declaration
public DateTime CreatedDate { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Id
Gets or sets the identifier of the entity.
Declaration
public TKey Id { get; set; }
Property Value
Type | Description |
---|---|
TKey |
UpdatedDate
Gets or sets the date of the entity's last update.
Declaration
public DateTime? UpdatedDate { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTime> |