Forgot unversioned xd
This commit is contained in:
15
SVSim.Database/Common/BaseEntity.cs
Normal file
15
SVSim.Database/Common/BaseEntity.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace SVSim.Database.Common;
|
||||
|
||||
public class BaseEntity<TKey> : ITimeTrackedEntity
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public virtual TKey Id { get; set; }
|
||||
|
||||
public DateTime DateCreated { get; set; } = DateTime.MinValue;
|
||||
|
||||
public DateTime? DateUpdated { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user