Example #1
0
        public static IBoundClient <T> Where <T>(this IBoundClient <T> client, ODataExpression expression)
            where T : class
        {
            if (client == null)
            {
                throw new ArgumentNullException(nameof(client));
            }

            return(client.Filter(expression: expression));
        }
Example #2
0
        public static IBoundClient <T> Where <T>(this IBoundClient <T> client, string where)
            where T : class
        {
            if (client == null)
            {
                throw new ArgumentNullException(nameof(client));
            }

            return(client.Filter(filter: where));
        }
Example #3
0
 public ODataSet <T> Where(Expression <Func <T, bool> > expression)
 {
     bounder = bounder.Filter(expression);
     return(this);
 }
Example #4
0
 public static IBoundClient <TOwner> WhereInFilter <TOwner, TProperty>(
     this IBoundClient <TOwner> client,
     Expression <Func <TOwner, TProperty> > getter,
     IEnumerable <TProperty> propertyValues)
     where TOwner : class
 => client.Filter(CreateWhereInFilter(getter, propertyValues));