This commit is contained in:
xuejmnet 2021-08-27 21:47:53 +08:00
parent 519fe66a06
commit 32bb3b8ddc
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@ namespace Sample.SqlServer.DbContexts
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
//配置默认和DefaultTableDbContext一样
modelBuilder.ApplyConfiguration(new SysUserModMap());
modelBuilder.ApplyConfiguration(new SysTestMap());
}