SelectStatementProvider
Query provider that builds SelectStatement from LINQ expressions
public sealed class SelectStatementProvider : IQueryProvider
Constructors
SelectStatementProvider
public SelectStatementProvider(string tableName, string? tableAlias = null)
Initializes a new instance of the SelectStatementProvider
| Parameter | Type | Description |
|---|---|---|
tableName |
String |
|
tableAlias |
String |
Methods
CreateQuery(Expression)
public IQueryable CreateQuery(Expression expression)
Creates a query
Parameters:
| Name | Type | Description |
|---|---|---|
expression |
Expression |
Returns: IQueryable
CreateQuery<TElement>(Expression)
public IQueryable<TElement> CreateQuery<TElement>(Expression expression)
Creates a typed query
Parameters:
| Name | Type | Description |
|---|---|---|
expression |
Expression |
Returns: IQueryable<<TElement>>
Execute(Expression)
public object? Execute(Expression expression)
Not supported - this is for query building only
Parameters:
| Name | Type | Description |
|---|---|---|
expression |
Expression |
Returns: Object
Execute<TResult>(Expression)
public TResult Execute<TResult>(Expression expression)
Not supported - this is for query building only
Parameters:
| Name | Type | Description |
|---|---|---|
expression |
Expression |
Returns: <TResult>