using Furion.DatabaseAccessor; using Microsoft.EntityFrameworkCore; using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace YBEE.EQM.Core { /// /// 角色菜单 /// [Comment("角色菜单")] public partial class SysRoleMenu : IEntity { /// /// 主键 /// [Comment("主键")] [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get; set; } /// /// 角色Id /// [Comment("角色Id")] [Required] public int SysRoleId { get; set; } /// /// 菜单Id /// [Comment("菜单Id")] [Required] public int SysMenuId { get; set; } /// /// 数据范围类型 /// [Comment("数据范围类型")] public DataScopeType DataScopeType { get; set; } /// /// 一对一引用(角色) /// public virtual SysRole SysRole { get; set; } /// /// 一对一引用(菜单) /// public virtual SysMenu SysMenu { get; set; } } }