mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-04-03 15:03:25 +08:00
调整了一下项目框架与前端JS代码
This commit is contained in:
33
OpenAuth.Repository/Models/Mapping/RoleMenuMap.cs
Normal file
33
OpenAuth.Repository/Models/Mapping/RoleMenuMap.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using OpenAuth.Domain;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public class RoleMenuMap : EntityTypeConfiguration<RoleMenu>
|
||||
{
|
||||
public RoleMenuMap()
|
||||
{
|
||||
// Primary Key
|
||||
this.HasKey(t => t.RoleMenuId);
|
||||
|
||||
// Properties
|
||||
this.Property(t => t.RoleMenuId)
|
||||
.IsRequired()
|
||||
.HasMaxLength(50);
|
||||
|
||||
this.Property(t => t.RoleId)
|
||||
.IsRequired()
|
||||
.HasMaxLength(50);
|
||||
|
||||
this.Property(t => t.MenuId)
|
||||
.IsRequired()
|
||||
.HasMaxLength(50);
|
||||
|
||||
// Table & Column Mappings
|
||||
this.ToTable("RoleMenu");
|
||||
this.Property(t => t.RoleMenuId).HasColumnName("RoleMenuId");
|
||||
this.Property(t => t.RoleId).HasColumnName("RoleId");
|
||||
this.Property(t => t.MenuId).HasColumnName("MenuId");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user