Update split table

This commit is contained in:
sunkaixuan 2022-05-11 16:49:42 +08:00
parent 158acea695
commit d03416e78b

View File

@ -215,8 +215,11 @@ namespace SqlSugar
{
if (!this.Context.DbMaintenance.IsAnyTable(item.Key, false))
{
this.Context.MappingTables.Add(EntityInfo.EntityName, item.Key);
this.Context.CodeFirst.InitTables<T>();
if (item.Value != null)
{
this.Context.MappingTables.Add(EntityInfo.EntityName, item.Key);
this.Context.CodeFirst.InitTables<T>();
}
}
}
this.Context.Ado.IsEnableLogEvent = isLog;