Update Core

This commit is contained in:
sunkaixuan
2022-05-11 16:56:00 +08:00
parent 36b59e3519
commit 62fa9cc34e
2 changed files with 9 additions and 2 deletions

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;

View File

@@ -65,6 +65,10 @@ namespace SqlSugar
}
else
{
if (entityValue == null)
{
return null;
}
var value = splitColumn.PropertyInfo.GetValue(entityValue, null);
if (value == null)
{