mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Update nav query
This commit is contained in:
@@ -529,10 +529,13 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
//var x=method.Arguments[1];
|
//var x=method.Arguments[1];
|
||||||
var conditionals = ExpressionTool.GetExpressionValue(method.Arguments[1]) as List<IConditionalModel>;
|
var conditionals = ExpressionTool.GetExpressionValue(method.Arguments[1]) as List<IConditionalModel>;
|
||||||
var whereObj = queryable.QueryBuilder.Builder.ConditionalModelToSql(conditionals);
|
if (conditionals.Count > 0)
|
||||||
where.Add(whereObj.Key);
|
{
|
||||||
if(whereObj.Value!=null)
|
var whereObj = queryable.QueryBuilder.Builder.ConditionalModelToSql(conditionals);
|
||||||
result.Parameters.AddRange(whereObj.Value);
|
where.Add(whereObj.Key);
|
||||||
|
if (whereObj.Value != null)
|
||||||
|
result.Parameters.AddRange(whereObj.Value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user