using Furion.DatabaseAccessor; using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace YBEE.EQM.Core { /// /// 角色用户 /// [Comment("角色用户")] public partial class SysRoleUser : 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 SysUserId { get; set; } /// /// 一对一引用(角色) /// public virtual SysRole SysRole { get; set; } /// /// 一对一引用(用户) /// public virtual SysUser SysUser { get; set; } } }