diff options
Diffstat (limited to 'src/Data/Models/CoreDataModel.cs')
| -rw-r--r-- | src/Data/Models/CoreDataModel.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/Data/Models/CoreDataModel.cs b/src/Data/Models/CoreDataModel.cs new file mode 100644 index 0000000..a675ff1 --- /dev/null +++ b/src/Data/Models/CoreDataModel.cs @@ -0,0 +1,25 @@ +using System; + +namespace IOL.Fagprove.Data.Models +{ + public class CoreDataModel + { + public Guid Id { get; set; } + public DateTime? CreatedUtc { get; set; } + public Guid? CreatedBy { get; set; } + public DateTime? ModifiedUtc { get; set; } + public Guid? ModifiedBy { get; set; } + + public void SetIsUpdating(bool isUpdating = true) + { + if (isUpdating) + { + Id = Id; + CreatedUtc = CreatedUtc; + CreatedBy = CreatedBy; + ModifiedBy = ModifiedBy; + ModifiedUtc = ModifiedUtc; + } + } + } +} |
