EntityVersion.cs 497 B

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