Class QuerySourceExpression
The expression of the query data source.
Inheritance
Inherited Members
Namespace: Terrasoft.Core.DB
Assembly: Terrasoft.Core.dll
Syntax
public class QuerySourceExpression : IQueryExpression, ICloneable
Constructors
QuerySourceExpression()
Initializes a new QuerySourceExpression instance.
Declaration
public QuerySourceExpression()
QuerySourceExpression(String)
Initializes a new QuerySourceExpression instance for the schema with the specified name.
Declaration
public QuerySourceExpression(string schemaName)
Parameters
Type | Name | Description |
---|---|---|
System.String | schemaName | Name of the schema. |
QuerySourceExpression(String, String)
Initializes a new QuerySourceExpression instance for the schema with the passed-in name and the specified source alias.
Declaration
public QuerySourceExpression(string schemaName, string alias)
Parameters
Type | Name | Description |
---|---|---|
System.String | schemaName | Name of the schema. |
System.String | alias | The alias of the source. |
QuerySourceExpression(Query)
Initializes a new QuerySourceExpression instance for the passed-in random subquery.
Declaration
public QuerySourceExpression(Query subSelectQuery)
Parameters
Type | Name | Description |
---|---|---|
Query | subSelectQuery | Random subquery. |
Exceptions
Type | Condition |
---|---|
InvalidTypeCastException | If the type of the |
QuerySourceExpression(Query, String)
Initializes a new QuerySourceExpression instance for the passed-in random subquery with the specified source alias.
Declaration
public QuerySourceExpression(Query subSelectQuery, string alias)
Parameters
Type | Name | Description |
---|---|---|
Query | subSelectQuery | Random subquery. |
System.String | alias | The alias of the source. |
QuerySourceExpression(QuerySourceExpression)
Initializes a new QuerySourceExpression instance that is a clone of the passed-in expression.
Declaration
public QuerySourceExpression(QuerySourceExpression source)
Parameters
Type | Name | Description |
---|---|---|
QuerySourceExpression | source | The expression whose clone is being created. |
QuerySourceExpression(Select)
Initializes a new QuerySourceExpression instance for the passed-in select subquery.
Declaration
public QuerySourceExpression(Select subSelect)
Parameters
Type | Name | Description |
---|---|---|
Select | subSelect | The select subquery. |
QuerySourceExpression(Select, String)
Initializes a new QuerySourceExpression instance for the passed-in select subquery with specified source alias.
Declaration
public QuerySourceExpression(Select subSelect, string alias)
Parameters
Type | Name | Description |
---|---|---|
Select | subSelect | The select subquery. |
System.String | alias | The alias of the source. |
Properties
Alias
Source expression alias.
Declaration
public string Alias { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ExpressionType
The type of the data source expression.
Declaration
public QuerySourceExpressionType ExpressionType { get; set; }
Property Value
Type | Description |
---|---|
QuerySourceExpressionType |
HasHints
Declaration
public bool HasHints { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Hints
Declaration
public HintCollection Hints { get; }
Property Value
Type | Description |
---|---|
HintCollection |
SchemaName
Source schema name.
Declaration
public string SchemaName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SqlText
SQL text that determines the data source.
Declaration
public string SqlText { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SubSelect
The select subquery that acts as the data source.
Declaration
public Select SubSelect { get; set; }
Property Value
Type | Description |
---|---|
Select |
Methods
Clone()
Creates the clone of the current QuerySourceExpression instance.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object | A new QuerySourceExpression instance that represents the copy of the current instance. |