namespace EntityFrameworkCore.Domain; // Since C#11, you do not need to wrap in accolades anymore. public abstract class BaseDomainModel { public int Id { get; set; } // Anything called "Id" is automatically a Primary Key. public DateTime CreatedDate { get; set;} public DateTime ModifiedDate { get; set;} public string? CreatedBy { get; set; } public string? ModifiedBy { get; set; } }