Interface IQuery<T>
Represents a query for building Linq translatable SQL queries
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public interface IQuery<T>
Type Parameters
Name | Description |
---|---|
T |
Methods
Where(Expression<Func<T, Boolean>>)
Adds a where clause to the query
Declaration
IQuery<T> Where(Expression<Func<T, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression<System.Func<T, System.Boolean>> | predicate |
Returns
Type | Description |
---|---|
IQuery<T> | This instance so calls to this method are chainable |
WhereAny(IEnumerable<Expression<Func<T, Boolean>>>)
Adds a set of OR-ed where clauses to the query.
Declaration
IQuery<T> WhereAny(IEnumerable<Expression<Func<T, bool>>> predicates)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Linq.Expressions.Expression<System.Func<T, System.Boolean>>> | predicates |
Returns
Type | Description |
---|---|
IQuery<T> | This instance so calls to this method are chainable. |