1
0

EntityUpdate.cs 1.0 KB

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