6be7a0ceed
- add non-generic IEntity with Created/Updated only - IEntity<TId> now extends IEntity - remove Created = DateTimeOffset.UtcNow from Entity constructor - add BaseDbContext with ApplyTimestamps, UtcValueConverter, DeleteBehavior.Restrict - add UnexpectedEntityStateException - add HrynCo.Common dependency to HrynCo.DAL.EF Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
13 lines
242 B
C#
13 lines
242 B
C#
namespace HrynCo.DAL.Abstract.Entities;
|
|
|
|
public interface IEntity
|
|
{
|
|
DateTimeOffset Created { get; set; }
|
|
DateTimeOffset? Updated { get; set; }
|
|
}
|
|
|
|
public interface IEntity<TId> : IEntity where TId : struct
|
|
{
|
|
TId Id { get; set; }
|
|
}
|