RootEntityTkey.cs 496 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Ropin.Inspection.Model.Entities
  8. {
  9. public class RootEntityTkey<Tkey> where Tkey : IEquatable<Tkey>
  10. {
  11. /// <summary>
  12. /// ID
  13. /// 泛型主键Tkey
  14. /// </summary>
  15. //[SugarColumn(IsNullable = false, IsPrimaryKey = true)]
  16. [Key]
  17. public Tkey Id { get; set; }
  18. }
  19. }