-
Notifications
You must be signed in to change notification settings - Fork 179
Open
Description
` public abstract class EntityBase
{
public Guid Id { get; set; }
public DateTime CreatedTime { get; set; }
public DateTime? LastUpdatedTime { get; set; }
public bool IsNew => this.Id == Guid.Empty;
public void NewId()
{
this.Id = Guid.NewGuid();
}
protected EntityBase()
{
CreatedTime = DateTime.Now;
}
}`
CreatedTime>CreatedAt
LastUpdatedTime>UpdatedAt
If user needed, named like this:
CreatedBy
UpdatedBy
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels