complete login

This commit is contained in:
yubaolee
2015-04-27 17:54:50 +08:00
parent ae2d70a028
commit 8e4472b86a
12 changed files with 121 additions and 28 deletions

View File

@@ -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");