Commit 808939c9 authored by thienvo's avatar thienvo

optimize sieve

parent ff8048cc
......@@ -268,6 +268,10 @@ namespace Sieve.Services
}
outerExpression = Expression.And(outerExpression, innerExpression);
}
if (outerExpression==null)
{
return null;
}
return Expression.Lambda<Func<TEntity, bool>>(outerExpression, parameterExpression);
}
private IQueryable<TEntity> ApplyFiltering<TEntity>(
......
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