Browse Source

Update nav query

SqlSugar5
sunkaixuan 2 years ago
parent
commit
2c37a364bb
  1. 11
      Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/NavigatManager.cs

11
Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/NavigatManager.cs

@ -529,10 +529,13 @@ namespace SqlSugar
{
//var x=method.Arguments[1];
var conditionals = ExpressionTool.GetExpressionValue(method.Arguments[1]) as List<IConditionalModel>;
var whereObj = queryable.QueryBuilder.Builder.ConditionalModelToSql(conditionals);
where.Add(whereObj.Key);
if(whereObj.Value!=null)
result.Parameters.AddRange(whereObj.Value);
if (conditionals.Count > 0)
{
var whereObj = queryable.QueryBuilder.Builder.ConditionalModelToSql(conditionals);
where.Add(whereObj.Key);
if (whereObj.Value != null)
result.Parameters.AddRange(whereObj.Value);
}
}
else
{

Loading…
Cancel
Save