如果 filter.Operator 等于“覆盖”,我需要返回空过滤器(非过滤器)。这该怎么做?
Func<IQueryable<T>, KendoFilterDescription, IQueryable<T>> appendFilter =
(filteredData, filter) =>
{
if (filter.Operator == "override")
{
return filteredData;
}
return filteredData.Where(ConvertToWhereStatement(filter),
ParsePropertyValue<T>(filter));
};