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 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
|
||||
{
|
||||
|
Reference in New Issue
Block a user