IwbSysSetting.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using System.ComponentModel.DataAnnotations;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using Abp.Domain.Entities.Auditing;
  4. using IwbZero.Authorization.Users;
  5. namespace IwbZero.BaseSysInfo
  6. {
  7. [Table("Sys_Settings")]
  8. public class IwbSysSetting<TUser> : FullAuditedEntity<int>, IFullAudited<TUser>
  9. where TUser : UserBase
  10. {
  11. public const int SettingNoMaxLength = 32;
  12. public const int SettingNameMaxLength = 50;
  13. public const int CodeMaxLength = 100;
  14. public const int ValueMaxLength = 500;
  15. public const int DesckMaxLength = 1000;
  16. public const int RemarkMaxLength = 1000;
  17. [StringLength(SettingNoMaxLength)]
  18. public string SettingNo { get; set; }
  19. [StringLength(SettingNameMaxLength)]
  20. public string SettingName { get; set; }
  21. public int SettingType { get; set; }
  22. [StringLength(CodeMaxLength)]
  23. public string Code { get; set; }
  24. [StringLength(ValueMaxLength)]
  25. public string Value { get; set; }
  26. [StringLength(DesckMaxLength)]
  27. public string Description { get; set; }
  28. [StringLength(RemarkMaxLength)]
  29. public string Remark { get; set; }
  30. public TUser CreatorUser { get; set; }
  31. public TUser LastModifierUser { get; set; }
  32. public TUser DeleterUser { get; set; }
  33. }
  34. }