mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-21 02:57:54 +08:00
complete login
This commit is contained in:
@@ -31,6 +31,7 @@ namespace OpenAuth.Infrastructure.Mapping
|
||||
this.Property(t => t.DepartmentId)
|
||||
.HasMaxLength(50);
|
||||
|
||||
//<2F><>ɫ<EFBFBD><C9AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD>
|
||||
this.HasMany(d => d.Users)
|
||||
.WithMany(u => u.Roles)
|
||||
.Map(
|
||||
@@ -41,6 +42,16 @@ namespace OpenAuth.Infrastructure.Mapping
|
||||
m.ToTable("UserRole");
|
||||
});
|
||||
|
||||
//<2F><>ɫ<EFBFBD><C9AB><EFBFBD><EFBFBD><EFBFBD>IJ˵<C4B2>
|
||||
this.HasMany(m => m.RoleMenus)
|
||||
.WithMany(r => r.Roles)
|
||||
.Map(m =>
|
||||
{
|
||||
m.MapLeftKey("RoleId");
|
||||
m.MapRightKey("MenuId");
|
||||
m.ToTable("RoleMenu");
|
||||
});
|
||||
|
||||
|
||||
// Table & Column Mappings
|
||||
this.ToTable("Role");
|
||||
|
Reference in New Issue
Block a user