1
0

EntityVersion.cs 426 B

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