Add audit interfaces and fields to domain entities
Introduced interfaces for audit fields (AddedWhen, ChangedWhen, ChangedWho, AddedWho) and updated domain entities to implement them. Adjusted properties for consistency and nullability. Updated MappingProfile to map audit fields between DTOs and entities. Improves auditability and standardization across the domain model.
This commit is contained in:
11
EnvelopeGenerator.Domain/Interfaces/IHasAddedWhen.cs
Normal file
11
EnvelopeGenerator.Domain/Interfaces/IHasAddedWhen.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
#if NETFRAMEWORK
|
||||
using System;
|
||||
#endif
|
||||
|
||||
namespace EnvelopeGenerator.Domain.Interfaces
|
||||
{
|
||||
public interface IHasAddedWhen
|
||||
{
|
||||
DateTime AddedWhen { get; set; }
|
||||
}
|
||||
}
|
||||
11
EnvelopeGenerator.Domain/Interfaces/IHasAddedWho.cs
Normal file
11
EnvelopeGenerator.Domain/Interfaces/IHasAddedWho.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
#if NETFRAMEWORK
|
||||
using System;
|
||||
#endif
|
||||
|
||||
namespace EnvelopeGenerator.Domain.Interfaces
|
||||
{
|
||||
public interface IHasAddedWho
|
||||
{
|
||||
string AddedWho { get; set; }
|
||||
}
|
||||
}
|
||||
11
EnvelopeGenerator.Domain/Interfaces/IHasChangedWhen.cs
Normal file
11
EnvelopeGenerator.Domain/Interfaces/IHasChangedWhen.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
#if NETFRAMEWORK
|
||||
using System;
|
||||
#endif
|
||||
|
||||
namespace EnvelopeGenerator.Domain.Interfaces
|
||||
{
|
||||
public interface IHasChangedWhen
|
||||
{
|
||||
DateTime? ChangedWhen { get; set; }
|
||||
}
|
||||
}
|
||||
11
EnvelopeGenerator.Domain/Interfaces/IHasChangedWho.cs
Normal file
11
EnvelopeGenerator.Domain/Interfaces/IHasChangedWho.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace EnvelopeGenerator.Domain.Interfaces
|
||||
{
|
||||
public interface IHasChangedWho
|
||||
{
|
||||
string
|
||||
#if nullable
|
||||
?
|
||||
#endif
|
||||
ChangedWho { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user