IAuditEntity.cs 569 B

123456789101112131415161718192021222324252627
  1. using System.ComponentModel.DataAnnotations.Schema;
  2. namespace MTWorkHR.Core.Entities.Base
  3. {
  4. public interface IAuditEntity : IEntity, IAudit
  5. {
  6. }
  7. public interface IAuditEntity<TKey> : IEntity<TKey>, IAudit
  8. {
  9. }
  10. public interface IAudit
  11. {
  12. [Column(Order = 1)]
  13. string? CreateUser { get; set; }
  14. [Column(Order = 2)]
  15. string? UpdateUser { get; set; }
  16. [Column(Order = 3)]
  17. DateTime CreateDate { get; set; }
  18. [Column(Order = 4)]
  19. DateTime? UpdateDate { get; set; }
  20. }
  21. }