mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-04-03 15:03:25 +08:00
调整数据库菜单表结构,可以动态加载按钮,注意更新数据库结构并重新初始化数据库
This commit is contained in:
@@ -20,9 +20,25 @@ namespace OpenAuth.Repository.Models.Mapping
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Attr)
|
||||
.IsRequired()
|
||||
.HasMaxLength(500);
|
||||
|
||||
this.Property(t => t.Script)
|
||||
.IsRequired()
|
||||
.HasMaxLength(500);
|
||||
|
||||
this.Property(t => t.Icon)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Class)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Remark)
|
||||
.IsRequired()
|
||||
.HasMaxLength(4000);
|
||||
.HasMaxLength(200);
|
||||
|
||||
// Table & Column Mappings
|
||||
this.ToTable("ModuleElement");
|
||||
@@ -31,6 +47,10 @@ namespace OpenAuth.Repository.Models.Mapping
|
||||
this.Property(t => t.Name).HasColumnName("Name");
|
||||
this.Property(t => t.Type).HasColumnName("Type");
|
||||
this.Property(t => t.ModuleId).HasColumnName("ModuleId");
|
||||
this.Property(t => t.Attr).HasColumnName("Attr");
|
||||
this.Property(t => t.Script).HasColumnName("Script");
|
||||
this.Property(t => t.Icon).HasColumnName("Icon");
|
||||
this.Property(t => t.Class).HasColumnName("Class");
|
||||
this.Property(t => t.Remark).HasColumnName("Remark");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user