SysPermission.cs 818 B

1234567891011121314151617181920212223242526272829
  1. using System.ComponentModel.DataAnnotations;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using Abp.Domain.Entities.Auditing;
  4. namespace IwbZero.Authorization.Permissions
  5. {
  6. [Table("Sys_Permissions")]
  7. public class SysPermission : CreationAuditedEntity<long>
  8. {
  9. public const int PermissionNoMaxLength = 32;
  10. public const int PermissionNameMaxLength = 500;
  11. [StringLength(PermissionNoMaxLength)]
  12. public string PermissionNo { get; set; }
  13. [StringLength(PermissionNameMaxLength)]
  14. public string PermissionName { get; set; }
  15. public int? Master { get; set; }
  16. public string MasterValue { get; set; }
  17. public int? Access { get; set; }
  18. public string AccessValue { get; set; }
  19. public bool IsGranted { get; set; }
  20. }
  21. }