-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
1,102 additions
and
510 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
R8.EntityFrameworkCore.AuditProvider.Abstractions/IAuditActivator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace R8.EntityFrameworkCore.AuditProvider.Abstractions | ||
{ | ||
/// <summary> | ||
/// An <see cref="IAuditActivator"/> interface that enables an entity to be auditable. | ||
/// </summary> | ||
public interface IAuditActivator | ||
{ | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
R8.EntityFrameworkCore.AuditProvider.Abstractions/IAuditCreateDate.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace R8.EntityFrameworkCore.AuditProvider.Abstractions | ||
{ | ||
/// <summary> | ||
/// An <see cref="IAuditCreateDate"/> interface that enables an entity to store creation date. | ||
/// </summary> | ||
public interface IAuditCreateDate | ||
{ | ||
/// <summary> | ||
/// Gets the creation date of this record. | ||
/// </summary> | ||
DateTime? CreateDate { get; set; } | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
R8.EntityFrameworkCore.AuditProvider.Abstractions/IAuditDeleteDate.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace R8.EntityFrameworkCore.AuditProvider.Abstractions | ||
{ | ||
/// <summary> | ||
/// An <see cref="IAuditDeleteDate"/> interface that enables an entity to store delete date. | ||
/// </summary> | ||
public interface IAuditDeleteDate | ||
{ | ||
/// <summary> | ||
/// Gets the delete date of this record. | ||
/// </summary> | ||
DateTime? DeleteDate { get; set; } | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
R8.EntityFrameworkCore.AuditProvider.Abstractions/IAuditSoftDelete.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace R8.EntityFrameworkCore.AuditProvider.Abstractions | ||
{ | ||
/// <summary> | ||
/// An <see cref="IAuditSoftDelete"/> interface that enables an entity to be soft-deletable. | ||
/// </summary> | ||
/// <remarks>This interface takes effect only when <see cref="IAuditActivator"/> is implemented.</remarks> | ||
public interface IAuditSoftDelete | ||
{ | ||
/// <summary> | ||
/// Gets a value indicating whether current entity is soft-deleted or not. | ||
/// </summary> | ||
bool IsDeleted { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
R8.EntityFrameworkCore.AuditProvider.Abstractions/IAuditUpdateDate.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace R8.EntityFrameworkCore.AuditProvider.Abstractions | ||
{ | ||
/// <summary> | ||
/// An <see cref="IAuditCreateDate"/> interface that enables an entity to store update/restore date. | ||
/// </summary> | ||
public interface IAuditUpdateDate | ||
{ | ||
/// <summary> | ||
/// Gets the update date of this record. | ||
/// </summary> | ||
DateTime? UpdateDate { get; set; } | ||
} | ||
} |
13 changes: 0 additions & 13 deletions
13
R8.EntityFrameworkCore.AuditProvider.Abstractions/IAuditableDelete.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.