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