Browse Source

Queryable.Includes().Mergetable()

pull/40/head
sunkaixuan 1 year ago
parent
commit
ccf2af2378
  1. 2
      Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs

2
Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs

@ -1287,6 +1287,8 @@ namespace SqlSugar
var result = this.Context.Queryable<T>().AS(SqlBuilder.GetPackTable(sqlobj.Key, "MergeTable")).AddParameters(sqlobj.Value).Select("*").With(SqlWith.Null);
result.QueryBuilder.WhereIndex = index;
result.QueryBuilder.NoCheckInclude = true;
result.QueryBuilder.Includes = this.QueryBuilder.Includes;
result.QueryBuilder.AppendNavInfo = this.QueryBuilder.AppendNavInfo;
result.QueryBuilder.LambdaExpressions.ParameterIndex = QueryBuilder.LambdaExpressions.ParameterIndex++;
result.QueryBuilder.LambdaExpressions.Index = QueryBuilder.LambdaExpressions.Index++;
if (this.Context.CurrentConnectionConfig.DbType == DbType.Oracle)

Loading…
Cancel
Save