EntityVersion.cs 430 B

123456789101112131415161718192021
  1. using FreeSql.DataAnnotations;
  2. using System.ComponentModel;
  3. namespace ZhonTai.Admin.Core.Entities;
  4. /// <summary>
  5. /// 实体版本
  6. /// </summary>
  7. public class EntityVersion<TKey> : EntityDelete, IVersion
  8. {
  9. /// <summary>
  10. /// 版本
  11. /// </summary>
  12. [Description("版本")]
  13. [Column(Position = -30, IsVersion = true)]
  14. public long Version { get; set; }
  15. }
  16. public class EntityVersion : EntityVersion<long>
  17. {
  18. }