Class QueryableExecuter<T, TT>
A QueryableExecuter that operates against the specified interface of type T
and a class of
type TT
implementing T
Implements
Inherited Members
Namespace: LemonEdge.Utils
Assembly: LemonEdge.Utils.dll
Syntax
[DataContract]
public class QueryableExecuter<T, TT> : QueryableExecuter<T>, ICloneable, ICloneable<QueryableExecuter>, ICloneable<QueryableExecuter<T>>, ICloneable<QueryableExecuter<T, TT>> where TT : T
Type Parameters
Name | Description |
---|---|
T | The type of interface this QueryableExecuter executes against |
TT | The type of the class that implements |
Constructors
QueryableExecuter(bool)
Creates a new instance of a QueryableExecuter for this interface T and type TT
Declaration
public QueryableExecuter(bool oDataQuery)
Parameters
Type | Name | Description |
---|---|---|
bool | oDataQuery | Indicates if this queryableexecuter is being operated against an odata web service collection of items or not |
Properties
QueryType
Holds the actual class type this QueryableExecuter is executing against.
All queries in LemonEdge can be run against interface or their class definitions
Declaration
public override Type QueryType { get; }
Property Value
Type | Description |
---|---|
Type |
Overrides
Methods
ApplyGenericWheres(IQueryable, bool)
Declaration
protected override IQueryable ApplyGenericWheres(IQueryable items, bool isODataQuery)
Parameters
Type | Name | Description |
---|---|---|
IQueryable | items | |
bool | isODataQuery |
Returns
Type | Description |
---|---|
IQueryable |
Overrides
Clone()
Creates a new instance of this class (of type QueryableExecuter<T, TT>) with all the same property values as this instance
Declaration
public QueryableExecuter<T, TT> Clone()
Returns
Type | Description |
---|---|
QueryableExecuter<T, TT> | A new instance of this class with all the same property values as this instance |
ConvertItems(IQueryable)
Ensures that when this QueryExecuter is applied against a collection of items that they are of the expected type
Declaration
protected override IQueryable ConvertItems(IQueryable items)
Parameters
Type | Name | Description |
---|---|---|
IQueryable | items | The collection of items to apply this QueryableExecuter against |
Returns
Type | Description |
---|---|
IQueryable | The collection of items conforming to being IQueryable<T> |
Overrides
CopyFromSource(QueryableExecuter<T, TT>)
Implementation of CopyFromSource(T). Sets all values of this QueryableExecuter to
the same as the supplied source
Declaration
public void CopyFromSource(QueryableExecuter<T, TT> source)
Parameters
Type | Name | Description |
---|---|---|
QueryableExecuter<T, TT> | source | A source QueryableExecuter to copy all values from |
CreateNewItem()
Returns a new instance of this inheriting type from QueryableExecuter. Used for Clone() implementations to always return the correct new type as an exact copy of the current one
Declaration
protected override QueryableExecuter CreateNewItem()
Returns
Type | Description |
---|---|
QueryableExecuter | A new QUeryableExecuter that is of the same inheriting type as this current one |
Overrides
GetClassFilters()
Returns the Where filters in this QueryableExecuter as Linq Expressions typed to type TT
Declaration
public IEnumerable<Expression<Func<TT, bool>>> GetClassFilters()
Returns
Type | Description |
---|---|
IEnumerable<Expression<Func<TT, bool>>> | The Where filters in this QueryableExecuter as Linq Expressions typed to type |