Class EntityQueryProvider
QueryProvider for Entity Queries.
Inheritance
System.Object
EntityQueryProvider
Implements
System.Linq.IQueryProvider
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TimeCockpit.Data.QueryLanguage.Queryable
Assembly: TimeCockpit.Data.dll
Syntax
public class EntityQueryProvider : IQueryProvider
Constructors
EntityQueryProvider(Model, String)
Initializes a new instance of the EntityQueryProvider class.
Declaration
public EntityQueryProvider(Model model, string entityName)
Parameters
| Type | Name | Description |
|---|---|---|
| Model | model | The model. |
| System.String | entityName | the name of the entity. |
Methods
CreateQuery(Expression)
Creates a query for a specific expression.
Declaration
public IQueryable CreateQuery(Expression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Linq.Expressions.Expression | expression | The expression of the query. |
Returns
| Type | Description |
|---|---|
| System.Linq.IQueryable | Returns the queryable. |
CreateQuery<TElement>(Expression)
Creates a query for a specific expression.
Declaration
public IQueryable<TElement> CreateQuery<TElement>(Expression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Linq.Expressions.Expression | expression | The expression of the query. |
Returns
| Type | Description |
|---|---|
| System.Linq.IQueryable<TElement> | Returns the queryable. |
Type Parameters
| Name | Description |
|---|---|
| TElement | The element type. |
Execute(Expression)
Execute a query.
Declaration
public object Execute(Expression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Linq.Expressions.Expression | expression | The expression. |
Returns
| Type | Description |
|---|---|
| System.Object | Returns the result when executing. |
Execute<TResult>(Expression)
Execute a query.
Declaration
public TResult Execute<TResult>(Expression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Linq.Expressions.Expression | expression | The expression. |
Returns
| Type | Description |
|---|---|
| TResult | Returns the result when executing. |
Type Parameters
| Name | Description |
|---|---|
| TResult | The result type. |