Refactor auditing interfaces to new Auditing namespace
Moved auditing interfaces to EnvelopeGenerator.Domain.Interfaces.Auditing. Updated entity classes to reference the new namespace. Added ICreationAuditable and IUpdateAuditable interfaces to improve code organization and clarify auditing responsibilities.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
namespace EnvelopeGenerator.Domain.Interfaces.Auditing
|
||||
{
|
||||
public interface ICreationAuditable : IHasAddedWhen, IHasAddedWho
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
#if NETFRAMEWORK
|
||||
using System;
|
||||
#endif
|
||||
|
||||
namespace EnvelopeGenerator.Domain.Interfaces.Auditing
|
||||
{
|
||||
public interface IHasAddedWhen
|
||||
{
|
||||
DateTime AddedWhen { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace EnvelopeGenerator.Domain.Interfaces.Auditing
|
||||
{
|
||||
public interface IHasAddedWho
|
||||
{
|
||||
string AddedWho { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
#if NETFRAMEWORK
|
||||
using System;
|
||||
#endif
|
||||
|
||||
namespace EnvelopeGenerator.Domain.Interfaces.Auditing
|
||||
{
|
||||
public interface IHasChangedWhen
|
||||
{
|
||||
DateTime? ChangedWhen { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace EnvelopeGenerator.Domain.Interfaces.Auditing
|
||||
{
|
||||
public interface IHasChangedWho
|
||||
{
|
||||
string
|
||||
#if nullable
|
||||
?
|
||||
#endif
|
||||
ChangedWho { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace EnvelopeGenerator.Domain.Interfaces.Auditing
|
||||
{
|
||||
public interface IUpdateAuditable : IHasChangedWhen, IHasChangedWho
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user