12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using FreeSql.DataAnnotations;
- namespace Admin.Core.Model.Admin
- {
-
-
-
- [Table(Name = "ad_role_permission")]
- [Index("uk_role_permissioin_roleid_permissionid", "RoleId,PermissionId", true)]
- public class RolePermissionEntity: EntityAdd
- {
-
-
-
- public long RoleId { get; set; }
-
-
-
- public long PermissionId { get; set; }
- #region 外键 => 导航属性,ManyToMany
-
-
-
- [Navigate("RoleId")]
- public RoleEntity Role { get; set; }
-
-
-
- [Navigate("PermissionId")]
- public PermissionEntity Permission { get; set; }
-
-
-
- [Column(IsIgnore = true)]
- public string RoleName { get; set; }
-
-
-
- [Column(IsIgnore = true)]
- public string ApiPath { get; set; }
- #endregion
- }
- }
|