23 lines
545 B
C#
23 lines
545 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace InSituLaboratory.Entities
|
|||
|
|
{
|
|||
|
|
[Table("role_menu")]
|
|||
|
|
//[PrimaryKey("RoleId", "MenuId")] // EFCore7.0及以后版本
|
|||
|
|
public class RoleMenu
|
|||
|
|
{
|
|||
|
|
[Column("role_id")]
|
|||
|
|
public int RoleId { get; set; }
|
|||
|
|
[Column("menu_id")]
|
|||
|
|
public int MenuId { get; set; }
|
|||
|
|
|
|||
|
|
[NotMapped]
|
|||
|
|
public SysRole SysRole { get; set; }
|
|||
|
|
}
|
|||
|
|
}
|