Table of Contents

Class EntityBase<TKey>

Namespace
MADE.Data.EFCore
Assembly
MADE.Data.EFCore.dll

Defines a base definition for an entity.

public abstract class EntityBase<TKey> : IEntityBase<TKey>, IDatedEntity

Type Parameters

TKey

The type of unique identifier for the entity.

Inheritance
EntityBase<TKey>
Implements
Inherited Members
Extension Methods

Properties

CreatedDate

Gets or sets the date of the entity's creation.

public DateTime CreatedDate { get; set; }

Property Value

DateTime

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; }

Property Value

DateTime?