Update db.Queryable(queryable)

This commit is contained in:
sunkaixuan 2025-03-20 15:25:07 +08:00
parent cea101d556
commit 033e91f66c

View File

@ -438,6 +438,8 @@ namespace SqlSugar
result.QueryBuilder.IsSqlQuery = false;
result.QueryBuilder.NoCheckInclude = true;
result.QueryBuilder.WhereIndex = (QueryBuilder.WhereIndex + 1);
var appendIndex = result.QueryBuilder.Parameters == null ? 1 : result.QueryBuilder.Parameters.Count + 1;
result.QueryBuilder.LambdaExpressions.ParameterIndex = (QueryBuilder.LambdaExpressions.ParameterIndex + appendIndex);
result.QueryBuilder.Includes = queryable.QueryBuilder.Includes?.ToList();
return result;
}