SysRoleMenu.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using Furion.DatabaseAccessor;
  2. using Microsoft.EntityFrameworkCore;
  3. using System;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.ComponentModel.DataAnnotations.Schema;
  6. namespace YBEE.EQM.Core
  7. {
  8. /// <summary>
  9. /// 角色菜单
  10. /// </summary>
  11. [Comment("角色菜单")]
  12. public partial class SysRoleMenu : IEntity
  13. {
  14. /// <summary>
  15. /// 主键
  16. /// </summary>
  17. [Comment("主键")]
  18. [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  19. public int Id { get; set; }
  20. /// <summary>
  21. /// 角色Id
  22. /// </summary>
  23. [Comment("角色Id")]
  24. [Required]
  25. public int SysRoleId { get; set; }
  26. /// <summary>
  27. /// 菜单Id
  28. /// </summary>
  29. [Comment("菜单Id")]
  30. [Required]
  31. public int SysMenuId { get; set; }
  32. /// <summary>
  33. /// 数据范围类型
  34. /// </summary>
  35. [Comment("数据范围类型")]
  36. public DataScopeType DataScopeType { get; set; }
  37. /// <summary>
  38. /// 一对一引用(角色)
  39. /// </summary>
  40. public virtual SysRole SysRole { get; set; }
  41. /// <summary>
  42. /// 一对一引用(菜单)
  43. /// </summary>
  44. public virtual SysMenu SysMenu { get; set; }
  45. }
  46. }