From 63a09998ac4fffdc08a8bb95ecac326095d161ca Mon Sep 17 00:00:00 2001 From: Kevin Matsubara Date: Sun, 6 Apr 2025 11:35:38 +0200 Subject: [PATCH] Add auditable properties to BaseDomainModel. --- EntityFrameworkCore.Domain/BaseDomainModel.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/EntityFrameworkCore.Domain/BaseDomainModel.cs b/EntityFrameworkCore.Domain/BaseDomainModel.cs index a107fe2..0a7ea84 100644 --- a/EntityFrameworkCore.Domain/BaseDomainModel.cs +++ b/EntityFrameworkCore.Domain/BaseDomainModel.cs @@ -4,4 +4,7 @@ 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; } }