Class SelectExpression
Expression, which represent SELECT query.
Namespace: Kros.KORM.Query.Expressions
Assembly: Kros.KORM.dll
Syntax
public class SelectExpression : QueryExpression
Constructors
SelectExpression(TableInfo)
Initializes a new instance of the SelectExpression class.
Declaration
public SelectExpression(TableInfo tableInfo)
Parameters
Type | Name | Description |
---|---|---|
TableInfo | tableInfo | The table info. |
Fields
SelectStatement
The select statement
Declaration
public const string SelectStatement = "SELECT"
Field Value
Type | Description |
---|---|
System.String |
Properties
ColumnsExpression
Gets the columns expression.
Declaration
public ColumnsExpression ColumnsExpression { get; }
Property Value
Type | Description |
---|---|
ColumnsExpression |
GroupByExpression
Gets or sets the group by expression.
Declaration
public GroupByExpression GroupByExpression { get; }
Property Value
Type | Description |
---|---|
GroupByExpression |
NodeType
Gets the node type of this System.Linq.Expressions.Expression.
Declaration
public override sealed ExpressionType NodeType { get; }
Property Value
Type | Description |
---|---|
System.Linq.Expressions.ExpressionType |
Overrides
OrderByExpression
Gets or sets the order by expression.
Declaration
public OrderByExpression OrderByExpression { get; }
Property Value
Type | Description |
---|---|
OrderByExpression |
TableExpression
Gets the table expression.
Declaration
public TableExpression TableExpression { get; }
Property Value
Type | Description |
---|---|
TableExpression |
Type
Gets the static type of the expression that this System.Linq.Expressions.Expression represents.
Declaration
public override Type Type { get; }
Property Value
Type | Description |
---|---|
System.Type |
Overrides
Value
Gets the value.
Declaration
public object Value { get; }
Property Value
Type | Description |
---|---|
System.Object |
WhereExpression
Gets or sets the where expression.
Declaration
public WhereExpression WhereExpression { get; }
Property Value
Type | Description |
---|---|
WhereExpression |
Methods
Accept(ExpressionVisitor)
Dispatches to the specific visit method for this node type. For example, System.Linq.Expressions.MethodCallExpression calls the System.Linq.Expressions.ExpressionVisitor.VisitMethodCall(System.Linq.Expressions.MethodCallExpression).
Declaration
protected override Expression Accept(ExpressionVisitor visitor)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.ExpressionVisitor | visitor | The visitor to visit this node with. |
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression | The result of visiting this node. |
Overrides
SetColumnsExpression(ColumnsExpression)
Sets the columns expression.
Declaration
public void SetColumnsExpression(ColumnsExpression columnExpression)
Parameters
Type | Name | Description |
---|---|---|
ColumnsExpression | columnExpression | The column expression. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | 'columnExpression' can be applied only once.;columnsExpression |
SetGroupByExpression(GroupByExpression)
Sets the group by expression.
Declaration
public void SetGroupByExpression(GroupByExpression groupByExpression)
Parameters
Type | Name | Description |
---|---|---|
GroupByExpression | groupByExpression | The group by expression. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | 'groupByExpression' can be applied only once.;groupByExpression |
SetOrderByExpression(OrderByExpression)
Sets the order by expression.
Declaration
public void SetOrderByExpression(OrderByExpression orderByExpression)
Parameters
Type | Name | Description |
---|---|---|
OrderByExpression | orderByExpression | The order by expression. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | 'orderByExpression' can be applied only once.;orderByExpression |
SetTableExpression(TableExpression)
Sets the table expression.
Declaration
public void SetTableExpression(TableExpression tableExpression)
Parameters
Type | Name | Description |
---|---|---|
TableExpression | tableExpression | The table expression. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | 'tableExpression' can be applied only once.;tableExpression |
SetWhereExpression(WhereExpression)
Sets the where expression.
Declaration
public void SetWhereExpression(WhereExpression whereExpression)
Parameters
Type | Name | Description |
---|---|---|
WhereExpression | whereExpression | The where expression. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | 'whereExpression' can be applied only once.;whereExpression |
VisitChildren(ExpressionVisitor)
Reduces the node and then calls the visitor delegate on the reduced expression. The method throws an exception if the node is not reducible.
Declaration
protected override Expression VisitChildren(ExpressionVisitor visitor)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.ExpressionVisitor | visitor | An instance of System.Func<T, TResult>. |
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression | The expression being visited, or an expression which should replace it in the tree. |