Synchronization code

This commit is contained in:
sunkaixuan
2023-07-04 16:11:30 +08:00
parent 3e86b4aaa4
commit f1926a28a5
2 changed files with 5 additions and 1 deletions

View File

@@ -1294,6 +1294,10 @@ namespace SqlSugar
}
}
}
if (tableName == null)
{
tableName = entity.DbTableName;
}
return tableName;
}
protected string AppendSelect(List<EntityColumnInfo> entityColumnInfos,string sql, ReadOnlyCollection<ParameterExpression> parameters, List<EntityColumnInfo> columnsResult, int parameterIndex1)

View File

@@ -411,7 +411,7 @@ namespace SqlSugar
Type type = item.GetType();
PropertyInfo field = type.GetProperty("exp", flag);
Type ChildType = item.type;
var entityInfo = this.Context.EntityMaintenance.GetEntityInfo(ChildType);
var entityInfo = this.Context.EntityMaintenance.GetEntityInfoWithAttr(ChildType);
var exp = field.GetValue(item, null) as Expression;
var isMain = ChildType == this.EntityType||(ChildType.IsInterface&& this.EntityType.GetInterfaces().Any(it => it == ChildType));
var isSingle = IsSingle();