Commit d7a1c2e3 authored by thienvo's avatar thienvo

optimize sieve

parent b593da69
......@@ -204,6 +204,10 @@ namespace Sieve.Services
Expression filterValue = GetClosureOverConstant(constantVal, property.PropertyType);
if (!string.IsNullOrEmpty(dynamicQuery))
{
dynamicQuery = GetDynamicQueryString(filterTerm, dynamicQuery.ToString(), filterValue.ToString());
}
if (filterTerm.OperatorIsCaseInsensitive)
{
......@@ -233,10 +237,7 @@ namespace Sieve.Services
{
innerExpression = Expression.Or(innerExpression, expression);
}
if (!string.IsNullOrEmpty(dynamicQuery))
{
dynamicQuery = GetDynamicQueryString(filterTerm, dynamicQuery.ToString(), filterValue.ToString());
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment