Skip to content

Commit

Permalink
移除不用代码
Browse files Browse the repository at this point in the history
  • Loading branch information
jxx committed Dec 7, 2019
1 parent ec582e5 commit 7b6bf49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Vue.Net/VOL.Core/BaseProvider/ServiceBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private PageDataOptions ValidatePageOptions(PageDataOptions options, out IQuerya
x.DisplayType = x.DisplayType.GetDBCondition();
if (string.IsNullOrEmpty(x.Value))
{
searchParametersList.Remove(x);
// searchParametersList.Remove(x);
continue;
}

Expand All @@ -162,7 +162,7 @@ private PageDataOptions ValidatePageOptions(PageDataOptions options, out IQuerya
// if (string.IsNullOrEmpty(x.Value))
if (values == null || values.Length == 0)
{
searchParametersList.Remove(x);
// searchParametersList.Remove(x);
continue;
}
if (x.DisplayType == HtmlElementType.Contains)
Expand All @@ -172,7 +172,7 @@ private PageDataOptions ValidatePageOptions(PageDataOptions options, out IQuerya
? queryable.Where(x.Name.CreateExpression<T>(values, expressionType))
: queryable.Where(x.Name.CreateExpression<T>(x.Value, expressionType));
}
options.Wheres = searchParametersList.GetEntitySql();
// options.Wheres = searchParametersList.GetEntitySql();
options.TableName = base.TableName ?? typeof(T).Name;
return options;
}
Expand Down

0 comments on commit 7b6bf49

Please sign in to comment.