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