Class DataLengthQueryFunction
Function for calculating the bytes used to represent the expression of column with passed name.
Inherited Members
Namespace: Terrasoft.Core.DB
Assembly: Terrasoft.Core.dll
Syntax
public class DataLengthQueryFunction : QueryFunction, IQueryColumnExpressionConvertible, IQueryColumnExpressionsCollector, ICloneable
Constructors
DataLengthQueryFunction()
Initializes a new DataLengthQueryFunction instance.
Declaration
public DataLengthQueryFunction()
DataLengthQueryFunction(DataLengthQueryFunction)
Initializes a new DataLengthQueryFunction instance that is a clone of the passed-in function.
Declaration
public DataLengthQueryFunction(DataLengthQueryFunction source)
Parameters
Type | Name | Description |
---|---|---|
DataLengthQueryFunction | source | The DataLengthQueryFunction function whose clone is being created. |
DataLengthQueryFunction(IQueryColumnExpressionConvertible)
Initializes a new DataLengthQueryFunction instance for the specified column expression.
Declaration
public DataLengthQueryFunction(IQueryColumnExpressionConvertible columnNameExpression)
Parameters
Type | Name | Description |
---|---|---|
IQueryColumnExpressionConvertible | columnNameExpression | The query column expression. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |
DataLengthQueryFunction(QueryColumnExpression)
Initializes a new DataLengthQueryFunction instance for the specified column expression.
Declaration
public DataLengthQueryFunction(QueryColumnExpression expression)
Parameters
Type | Name | Description |
---|---|---|
QueryColumnExpression | expression | The query column expression. |
Properties
Expression
The expression of the function argument.
Declaration
public QueryColumnExpression Expression { get; set; }
Property Value
Type | Description |
---|---|
QueryColumnExpression |
Methods
AddQueryColumnExpressions(QueryColumnExpressionCollection)
Declaration
protected override void AddQueryColumnExpressions(QueryColumnExpressionCollection collection)
Parameters
Type | Name | Description |
---|---|---|
QueryColumnExpressionCollection | collection |
Overrides
AddUsingParameters(QueryParameterCollection)
In the function arguments adds the passed-in collection of parameters.
Declaration
public override void AddUsingParameters(QueryParameterCollection resultParameters)
Parameters
Type | Name | Description |
---|---|---|
QueryParameterCollection | resultParameters | Collection of the query parameters. |
Overrides
BuildSqlText(StringBuilder, DBEngine)
Generates the query text, using the specified System.Text.StringBuilder instance and the DBEngine query builder.
Declaration
public override void BuildSqlText(StringBuilder sb, DBEngine dbEngine)
Parameters
Type | Name | Description |
---|---|---|
System.Text.StringBuilder | sb | The System.Text.StringBuilder instance used to create query text. |
DBEngine | dbEngine | The instance of the builder of the database queries. |
Overrides
Clone()
Creates the clone of the current DataLengthQueryFunction instance.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | A new DataLengthQueryFunction instance that is a clone of the current instance. |