Class KinveyQueryExecutor<K>
Constitutes the bridge between re-linq and a concrete query provider implementation.
Inheritance
Namespace: Kinvey
Assembly: Kinvey.dll
Syntax
public class KinveyQueryExecutor<K> : IQueryExecutor
Type Parameters
Name | Description |
---|---|
K | The type of the result items yielded by this query. |
Fields
| Improve this Doc View Sourcequeryable
Kinvey queryable instance used as an entry point (the main data source) of a LINQ query.
Declaration
public KinveyQueryable<K> queryable
Field Value
Type | Description |
---|---|
KinveyQueryable<K> | The instance of the KinveyQueryable<T>. |
writer
Builds the mongo query corresponding to the LINQ query.
Declaration
public StringQueryBuilder writer
Field Value
Type | Description |
---|---|
StringQueryBuilder | String query builder. |
Methods
| Improve this Doc View SourceExecuteCollection<T>(QueryModel)
Executes the given queryModel as a collection query, i.e. as a query returning objects of type T.
Declaration
public IEnumerable<T> ExecuteCollection<T>(QueryModel queryModel)
Parameters
Type | Name | Description |
---|---|---|
QueryModel | queryModel | The |
Returns
Type | Description |
---|---|
IEnumerable<T> | An instance implementing the |
Type Parameters
Name | Description |
---|---|
T | The type of the items returned by the query. |
ExecuteScalar<T>(QueryModel)
Executes the given queryModel as a scalar query, i.e. as a query returning a scalar value of type T.
Declaration
public T ExecuteScalar<T>(QueryModel queryModel)
Parameters
Type | Name | Description |
---|---|---|
QueryModel | queryModel | The |
Returns
Type | Description |
---|---|
T | A scalar value of type T that represents the query's result. |
Type Parameters
Name | Description |
---|---|
T | The type of the scalar value returned by the query. |
ExecuteSingle<T>(QueryModel, Boolean)
Executes the given queryModel as a single object query, i.e. as a query returning a single object of type T.
Declaration
public T ExecuteSingle<T>(QueryModel queryModel, bool returnDefaultWhenEmpty)
Parameters
Type | Name | Description |
---|---|---|
QueryModel | queryModel | The |
System.Boolean | returnDefaultWhenEmpty | If |
Returns
Type | Description |
---|---|
T | A single value of type T that represents the query's result. |
Type Parameters
Name | Description |
---|---|
T | The type of the single value returned by the query. |