mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 10:37:55 +08:00
添加资源表/数据字典/分类
This commit is contained in:
@@ -17,10 +17,15 @@ namespace OpenAuth.Repository.Models
|
||||
{
|
||||
}
|
||||
|
||||
public DbSet<Category> Categories { get; set; }
|
||||
public DbSet<DicDetail> DicDetails { get; set; }
|
||||
public DbSet<DicIndex> DicIndexes { get; set; }
|
||||
public DbSet<Module> Modules { get; set; }
|
||||
public DbSet<ModuleElement> ModuleElements { get; set; }
|
||||
public DbSet<Org> Orgs { get; set; }
|
||||
public DbSet<Param> Params { get; set; }
|
||||
public DbSet<Relevance> Relevances { get; set; }
|
||||
public DbSet<Resource> Resources { get; set; }
|
||||
public DbSet<Role> Roles { get; set; }
|
||||
public DbSet<User> Users { get; set; }
|
||||
public DbSet<UserCfg> UserCfgs { get; set; }
|
||||
@@ -28,10 +33,15 @@ namespace OpenAuth.Repository.Models
|
||||
|
||||
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Configurations.Add(new CategoryMap());
|
||||
modelBuilder.Configurations.Add(new DicDetailMap());
|
||||
modelBuilder.Configurations.Add(new DicIndexMap());
|
||||
modelBuilder.Configurations.Add(new ModuleMap());
|
||||
modelBuilder.Configurations.Add(new ModuleElementMap());
|
||||
modelBuilder.Configurations.Add(new OrgMap());
|
||||
modelBuilder.Configurations.Add(new ParamMap());
|
||||
modelBuilder.Configurations.Add(new RelevanceMap());
|
||||
modelBuilder.Configurations.Add(new ResourceMap());
|
||||
modelBuilder.Configurations.Add(new RoleMap());
|
||||
modelBuilder.Configurations.Add(new UserMap());
|
||||
modelBuilder.Configurations.Add(new UserCfgMap());
|
||||
|
Reference in New Issue
Block a user