FullAuditEntity.cs 800 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace MTWorkHR.Core.Entities.Base
  9. {
  10. public class FullAuditEntity:AuditEntity, IFullAuditEntity
  11. {
  12. [Column(Order = 7)]
  13. public bool IsDeleted { get; set; }
  14. [MaxLength(450)]
  15. [Column(Order = 8)]
  16. public string? DeleteUserId { get; set; }
  17. }
  18. public class FullAuditEntity<TKey> : AuditEntity<TKey>, IFullAuditEntity<TKey> where TKey : Type
  19. {
  20. [Column(Order = 7)]
  21. public bool IsDeleted { get; set; }
  22. [MaxLength(450)]
  23. [Column(Order = 8)]
  24. public string? DeleteUserId { get; set; }
  25. }
  26. }