Browse Source

Synchronization code

pull/40/head
sunkaixuan 1 year ago
parent
commit
f1926a28a5
  1. 4
      Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableHelper.cs
  2. 2
      Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/QueryBuilder.cs

4
Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableHelper.cs

@ -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)

2
Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/QueryBuilder.cs

@ -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();

Loading…
Cancel
Save