Class QueryableExecuter<T>
A QueryableExecuter that operates against the specified interface of type T
Inheritance
System.Object
QueryableExecuter<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Utils.dll
Syntax
[DataContract]
public class QueryableExecuter<T> : QueryableExecuter, ICloneable, ICloneable<QueryableExecuter>, ICloneable<QueryableExecuter<T>>
Type Parameters
Name |
Description |
T |
The type of interface this QueryableExecuter executes against
|
Constructors
QueryableExecuter(Boolean)
Declaration
protected QueryableExecuter(bool oDataQuery)
Parameters
Type |
Name |
Description |
System.Boolean |
oDataQuery |
|
Properties
AltersQuery
Declaration
public override bool AltersQuery { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
InterfaceType
Declaration
public override Type InterfaceType { get; }
Property Value
Type |
Description |
System.Type |
|
Overrides
LamdaWheres
Declaration
protected IEnumerable<Expression<Func<T, bool>>> LamdaWheres { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.Linq.Expressions.Expression<System.Func<T, System.Boolean>>> |
|
QueryType
Declaration
public override Type QueryType { get; }
Property Value
Type |
Description |
System.Type |
|
Overrides
Methods
ApplyGenericWheres(IQueryable, Boolean)
Declaration
protected virtual IQueryable ApplyGenericWheres(IQueryable items, bool isODataQuery)
Parameters
Type |
Name |
Description |
System.Linq.IQueryable |
items |
|
System.Boolean |
isODataQuery |
|
Returns
Type |
Description |
System.Linq.IQueryable |
|
ApplyGenericWheres<X>(IQueryable, IEnumerable<Expression<Func<X, Boolean>>>)
Declaration
protected IQueryable ApplyGenericWheres<X>(IQueryable items, IEnumerable<Expression<Func<X, bool>>> wheres)
Parameters
Type |
Name |
Description |
System.Linq.IQueryable |
items |
|
System.Collections.Generic.IEnumerable<System.Linq.Expressions.Expression<System.Func<X, System.Boolean>>> |
wheres |
|
Returns
Type |
Description |
System.Linq.IQueryable |
|
Type Parameters
ApplyQueryExecuter(IQueryable, QueryableExecuterApplyType, Boolean)
Declaration
public override IQueryable ApplyQueryExecuter(IQueryable items, QueryableExecuterApplyType type, bool isODataQuery)
Parameters
Returns
Type |
Description |
System.Linq.IQueryable |
|
Overrides
Clone()
Declaration
public QueryableExecuter<T> Clone()
Returns
ConvertItems(IQueryable)
Ensures that when this QueryExecuter is applied against a collection of items that they are of the expected type
Declaration
protected virtual IQueryable ConvertItems(IQueryable items)
Parameters
Type |
Name |
Description |
System.Linq.IQueryable |
items |
The collection of items to apply this QueryableExecuter against
|
Returns
Type |
Description |
System.Linq.IQueryable |
The collection of items conforming to being System.Linq.IQueryable<T>
|
CopyFromSource(QueryableExecuter<T>)
Implementation of CopyFromSource(T). Sets all values of this QueryableExecuter to the same as the supplied source
Declaration
public void CopyFromSource(QueryableExecuter<T> source)
Parameters
Type |
Name |
Description |
QueryableExecuter<T> |
source |
A source QueryableExecuter to copy all values from
|
Create(Boolean)
Declaration
public static QueryableExecuter<T> Create(bool oDataQuery)
Parameters
Type |
Name |
Description |
System.Boolean |
oDataQuery |
Indicates if this queryableexecuter is being operated against an odata web service collection of items or not
|
Returns
Create(Type, Boolean)
Creates a new QueryableExecuter<T, TT> with the TT type being specified from inheritingTypeTT
that must inherit/implement type T
Declaration
public static QueryableExecuter<T> Create(Type inheritingTypeTT, bool oDataQuery)
Parameters
Type |
Name |
Description |
System.Type |
inheritingTypeTT |
The type of the class that this queryablefilter actually operates against
|
System.Boolean |
oDataQuery |
Indicates if this queryableexecuter is being operated against an odata web service collection of items or not
|
Returns
CreateNewItem()
Declaration
protected override QueryableExecuter CreateNewItem()
Returns
Overrides
GetFilters()
Returns the Where filters in this QueryableExecuter as Linq Expressions typed to type T
Declaration
public IEnumerable<Expression<Func<T, bool>>> GetFilters()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.Linq.Expressions.Expression<System.Func<T, System.Boolean>>> |
The Where filters in this QueryableExecuter as Linq Expressions typed to type T
|
OrderBy(String, Order)
Declaration
public QueryableExecuter<T> OrderBy(string propName, Order direction)
Parameters
Type |
Name |
Description |
System.String |
propName |
|
Order |
direction |
|
Returns
Skip(Int32)
Declaration
public QueryableExecuter<T> Skip(int count)
Parameters
Type |
Name |
Description |
System.Int32 |
count |
|
Returns
Top(Int32)
Declaration
public QueryableExecuter<T> Top(int count)
Parameters
Type |
Name |
Description |
System.Int32 |
count |
|
Returns
Where(QueryableFilter)
Declaration
public QueryableExecuter<T> Where(QueryableFilter filter)
Parameters
Returns
Where(String, SQLOperator, Object)
Declaration
public QueryableExecuter<T> Where(string propName, SQLOperator op, object value)
Parameters
Type |
Name |
Description |
System.String |
propName |
|
SQLOperator |
op |
|
System.Object |
value |
|
Returns
Where(String, String, SQLOperator)
Declaration
public QueryableExecuter<T> Where(string propName, string propName2, SQLOperator op)
Parameters
Type |
Name |
Description |
System.String |
propName |
|
System.String |
propName2 |
|
SQLOperator |
op |
|
Returns
Implements
Extension Methods
See Also