mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 20:43:46 +08:00
Update Core
This commit is contained in:
@@ -215,8 +215,11 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
if (!this.Context.DbMaintenance.IsAnyTable(item.Key, false))
|
if (!this.Context.DbMaintenance.IsAnyTable(item.Key, false))
|
||||||
{
|
{
|
||||||
this.Context.MappingTables.Add(EntityInfo.EntityName, item.Key);
|
if (item.Value != null)
|
||||||
this.Context.CodeFirst.InitTables<T>();
|
{
|
||||||
|
this.Context.MappingTables.Add(EntityInfo.EntityName, item.Key);
|
||||||
|
this.Context.CodeFirst.InitTables<T>();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.Context.Ado.IsEnableLogEvent = isLog;
|
this.Context.Ado.IsEnableLogEvent = isLog;
|
||||||
|
@@ -65,6 +65,10 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (entityValue == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
var value = splitColumn.PropertyInfo.GetValue(entityValue, null);
|
var value = splitColumn.PropertyInfo.GetValue(entityValue, null);
|
||||||
if (value == null)
|
if (value == null)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user