diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs index 354302ca0..c18783639 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs @@ -969,6 +969,7 @@ namespace SqlSugar return this.Select(expression); } this.QueryBuilder.Parameters = ps.Parameters; + this.QueryBuilder.LambdaExpressions.ParameterIndex = clone.QueryBuilder.LambdaExpressions.ParameterIndex; var parameters = (expression as LambdaExpression).Parameters; var columnsResult = this.Context.EntityMaintenance.GetEntityInfo().Columns; sql = AppendSelect(this.EntityInfo.Columns,sql, parameters, columnsResult, 0); diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider02-05.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider02-05.cs index 31821ebbd..67ffb5cb2 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider02-05.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider02-05.cs @@ -202,6 +202,7 @@ namespace SqlSugar return this.Select(expression); } this.QueryBuilder.Parameters = clone.QueryBuilder.Parameters; + this.QueryBuilder.LambdaExpressions.ParameterIndex = clone.QueryBuilder.LambdaExpressions.ParameterIndex; var parameters = (expression as LambdaExpression).Parameters; var columnsResult = this.Context.EntityMaintenance.GetEntityInfo().Columns; sql = AppendSelect(sql, parameters, columnsResult, 0); @@ -829,6 +830,7 @@ namespace SqlSugar return this.Select(expression); } this.QueryBuilder.Parameters = clone.QueryBuilder.Parameters; + this.QueryBuilder.LambdaExpressions.ParameterIndex = clone.QueryBuilder.LambdaExpressions.ParameterIndex; var parameters = (expression as LambdaExpression).Parameters; var columnsResult = this.Context.EntityMaintenance.GetEntityInfo().Columns; sql = AppendSelect(sql, parameters, columnsResult, 0); @@ -1347,6 +1349,7 @@ namespace SqlSugar return this.Select(expression); } this.QueryBuilder.Parameters = clone.QueryBuilder.Parameters; + this.QueryBuilder.LambdaExpressions.ParameterIndex=clone.QueryBuilder.LambdaExpressions.ParameterIndex; var parameters = (expression as LambdaExpression).Parameters; var columnsResult = this.Context.EntityMaintenance.GetEntityInfo().Columns; sql = AppendSelect(sql, parameters, columnsResult, 0); @@ -1996,6 +1999,7 @@ namespace SqlSugar return this.Select(expression); } this.QueryBuilder.Parameters = clone.QueryBuilder.Parameters; + this.QueryBuilder.LambdaExpressions.ParameterIndex = clone.QueryBuilder.LambdaExpressions.ParameterIndex; var parameters = (expression as LambdaExpression).Parameters; var columnsResult = this.Context.EntityMaintenance.GetEntityInfo().Columns; sql = AppendSelect(sql, parameters, columnsResult, 0); diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider06-10.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider06-10.cs index da650d8d6..e81c2fb28 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider06-10.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider06-10.cs @@ -251,6 +251,7 @@ namespace SqlSugar return this.Select(expression); } this.QueryBuilder.Parameters = clone.QueryBuilder.Parameters; + this.QueryBuilder.LambdaExpressions.ParameterIndex = clone.QueryBuilder.LambdaExpressions.ParameterIndex; var parameters = (expression as LambdaExpression).Parameters; var columnsResult = this.Context.EntityMaintenance.GetEntityInfo().Columns; sql = AppendSelect(sql, parameters, columnsResult, 0); @@ -877,6 +878,7 @@ namespace SqlSugar return this.Select(expression); } this.QueryBuilder.Parameters = clone.QueryBuilder.Parameters; + this.QueryBuilder.LambdaExpressions.ParameterIndex = clone.QueryBuilder.LambdaExpressions.ParameterIndex; var parameters = (expression as LambdaExpression).Parameters; var columnsResult = this.Context.EntityMaintenance.GetEntityInfo().Columns; sql = AppendSelect(sql, parameters, columnsResult, 0); @@ -1471,6 +1473,7 @@ namespace SqlSugar return this.Select(expression); } this.QueryBuilder.Parameters = clone.QueryBuilder.Parameters; + this.QueryBuilder.LambdaExpressions.ParameterIndex = clone.QueryBuilder.LambdaExpressions.ParameterIndex; var parameters = (expression as LambdaExpression).Parameters; var columnsResult = this.Context.EntityMaintenance.GetEntityInfo().Columns; sql = AppendSelect(sql, parameters, columnsResult, 0); @@ -2003,6 +2006,7 @@ namespace SqlSugar return this.Select(expression); } this.QueryBuilder.Parameters = clone.QueryBuilder.Parameters; + this.QueryBuilder.LambdaExpressions.ParameterIndex = clone.QueryBuilder.LambdaExpressions.ParameterIndex; var parameters = (expression as LambdaExpression).Parameters; var columnsResult = this.Context.EntityMaintenance.GetEntityInfo().Columns; sql = AppendSelect(sql, parameters, columnsResult, 0); @@ -2582,6 +2586,7 @@ namespace SqlSugar return this.Select(expression); } this.QueryBuilder.Parameters = clone.QueryBuilder.Parameters; + this.QueryBuilder.LambdaExpressions.ParameterIndex = clone.QueryBuilder.LambdaExpressions.ParameterIndex; var parameters = (expression as LambdaExpression).Parameters; var columnsResult = this.Context.EntityMaintenance.GetEntityInfo().Columns; sql = AppendSelect(sql, parameters, columnsResult, 0); diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider11-12.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider11-12.cs index cd9067c33..f98c4dbaa 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider11-12.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider11-12.cs @@ -261,6 +261,7 @@ namespace SqlSugar return this.Select(expression); } this.QueryBuilder.Parameters = clone.QueryBuilder.Parameters; + this.QueryBuilder.LambdaExpressions.ParameterIndex = clone.QueryBuilder.LambdaExpressions.ParameterIndex; var parameters = (expression as LambdaExpression).Parameters; var columnsResult = this.Context.EntityMaintenance.GetEntityInfo().Columns; sql = AppendSelect(sql, parameters, columnsResult, 0); @@ -815,6 +816,7 @@ namespace SqlSugar return this.Select(expression); } this.QueryBuilder.Parameters = clone.QueryBuilder.Parameters; + this.QueryBuilder.LambdaExpressions.ParameterIndex = clone.QueryBuilder.LambdaExpressions.ParameterIndex; var parameters = (expression as LambdaExpression).Parameters; var columnsResult = this.Context.EntityMaintenance.GetEntityInfo().Columns; sql = AppendSelect(sql, parameters, columnsResult, 0);