SysStateBase.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System.ComponentModel.DataAnnotations;
  2. using Abp.Domain.Entities.Auditing;
  3. namespace IwbZero.Authorization.Base.SystemInfo
  4. {
  5. public class SysStateBase : FullAuditedEntity<int>
  6. {
  7. public const int StateNoMaxLength = 32;
  8. public const int StateNameMaxLength = 50;
  9. public const int TableNameMaxLength = 50;
  10. public const int ColNameMaxLength = 50;
  11. public const int CodeValueMaxLength = 100;
  12. public const int DisplayValueMaxLength = 100;
  13. [StringLength(StateNoMaxLength)]
  14. public string StateNo { get; set; }
  15. [StringLength(StateNameMaxLength)]
  16. public string StateName { get; set; }
  17. [Required]
  18. [StringLength(TableNameMaxLength)]
  19. public string TableName { get; set; }
  20. [Required]
  21. [StringLength(ColNameMaxLength)]
  22. public string ColumnName { get; set; }
  23. [Required]
  24. [StringLength(CodeValueMaxLength)]
  25. public string CodeValue { get; set; }
  26. [Required]
  27. [StringLength(DisplayValueMaxLength)]
  28. public string DisplayValue { get; set; }
  29. }
  30. }