EntityUpdate.cs 954 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using FreeSql.DataAnnotations;
  2. using System;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations;
  5. namespace ZhonTai.Admin.Core.Entities;
  6. /// <summary>
  7. /// 实体修改
  8. /// </summary>
  9. public class EntityUpdate<TKey> : Entity<TKey>, IEntityUpdate<TKey> where TKey : struct
  10. {
  11. /// <summary>
  12. /// 修改者Id
  13. /// </summary>
  14. [Description("修改者Id")]
  15. [Column(Position = -3, CanInsert = false)]
  16. public long? ModifiedUserId { get; set; }
  17. /// <summary>
  18. /// 修改者
  19. /// </summary>
  20. [Description("修改者")]
  21. [Column(Position = -2, CanInsert = false), MaxLength(50)]
  22. public string ModifiedUserName { get; set; }
  23. /// <summary>
  24. /// 修改时间
  25. /// </summary>
  26. [Description("修改时间")]
  27. [Column(Position = -1, CanInsert = false, ServerTime = DateTimeKind.Local)]
  28. public DateTime? ModifiedTime { get; set; }
  29. }
  30. public class EntityUpdate : EntityUpdate<long>
  31. {
  32. }