internal static LambdaExpression Bind(IQueryable baseQuery, OrderByClause orderBy, Type elementType, ODataQueryContext context, ODataQuerySettings querySettings) { Contract.Assert(orderBy != null); Contract.Assert(elementType != null); Contract.Assert(context != null); FilterBinder binder = context.GetFilterBinder(querySettings); binder._filterType = elementType; binder.BaseQuery = baseQuery; return(BindOrderByClause(binder, orderBy, elementType)); }
internal static Expression Bind(IQueryable baseQuery, FilterClause filterClause, Type filterType, ODataQueryContext context, ODataQuerySettings querySettings) { Contract.Assert(filterClause != null); Contract.Assert(filterType != null); Contract.Assert(context != null); FilterBinder binder = context.GetFilterBinder(querySettings); binder._filterType = filterType; binder.BaseQuery = baseQuery; return(BindFilterClause(binder, filterClause, filterType)); }