namespace HrynCo.NotificationService.DAL.Abstract.Entities; public abstract class Entity : IEntity where TId : struct { public TId Id { get; set; } public DateTimeOffset Created { get; set; } public DateTimeOffset? Updated { get; set; } } public abstract class Entity : Entity { protected Entity() { Id = Guid.NewGuid(); Created = DateTimeOffset.UtcNow; } }