Class EntitySchemaDatePartQueryFunction
Represents query function for part of date.
Inherited Members
Namespace: Terrasoft.Core.Entities
Assembly: Terrasoft.Core.dll
Syntax
public class EntitySchemaDatePartQueryFunction : EntitySchemaQueryFunction, IMetaItem, IMetaDataSerializable, ICloneable
Constructors
EntitySchemaDatePartQueryFunction(EntitySchemaDatePartQueryFunction)
Initializes new instance of EntitySchemaDatePartQueryFunction which is clone of other instance.
Declaration
public EntitySchemaDatePartQueryFunction(EntitySchemaDatePartQueryFunction source)
Parameters
Type | Name | Description |
---|---|---|
EntitySchemaDatePartQueryFunction | source | Instance of EntitySchemaDatePartQueryFunction to be cloned. |
EntitySchemaDatePartQueryFunction(EntitySchemaQuery)
Initializes new instance of EntitySchemaDatePartQueryFunction which is part of provided
parentQuery
.
Declaration
public EntitySchemaDatePartQueryFunction(EntitySchemaQuery parentQuery)
Parameters
Type | Name | Description |
---|---|---|
EntitySchemaQuery | parentQuery | Instance of EntitySchemaQuery |
EntitySchemaDatePartQueryFunction(EntitySchemaQuery, EntitySchemaDatePartQueryFunctionInterval, EntitySchemaQueryExpression)
Initializes new instance of EntitySchemaDatePartQueryFunction which is part of provided
parentQuery
with specified part of date interval
for query to
entity schema and query expression expression
.
Declaration
public EntitySchemaDatePartQueryFunction(EntitySchemaQuery parentQuery, EntitySchemaDatePartQueryFunctionInterval interval, EntitySchemaQueryExpression expression)
Parameters
Type | Name | Description |
---|---|---|
EntitySchemaQuery | parentQuery | Instance of EntitySchemaQuery. |
EntitySchemaDatePartQueryFunctionInterval | interval | Part of date. |
EntitySchemaQueryExpression | expression | Query expression. |
Properties
Expression
The expression of the function argument.
Declaration
public EntitySchemaQueryExpression Expression { get; set; }
Property Value
Type | Description |
---|---|
EntitySchemaQueryExpression |
Interval
The datepart returned by the function.
Declaration
public EntitySchemaDatePartQueryFunctionInterval Interval { get; set; }
Property Value
Type | Description |
---|---|
EntitySchemaDatePartQueryFunctionInterval |
QueryAlias
The alias of the function in the SQL query.
Declaration
public override string QueryAlias { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
ApplyMetaDataValue(DataReader)
Declaration
protected override void ApplyMetaDataValue(DataReader reader)
Parameters
Type | Name | Description |
---|---|---|
DataReader | reader |
Overrides
Clone()
Creates the clone of the current EntitySchemaDatePartQueryFunction instance.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | The System.Object instance that is a clone of the current function instance. |
Overrides
CreateQueryColumnExpression(DBSecurityEngine)
For the current function, gets the query column expression that is generated taking into account the specified access rights.
Declaration
public override QueryColumnExpression CreateQueryColumnExpression(DBSecurityEngine dbSecurityEngine)
Parameters
Type | Name | Description |
---|---|---|
DBSecurityEngine | dbSecurityEngine | The DBSecurityEngine entity that determines the access rights. |
Returns
Type | Description |
---|---|
QueryColumnExpression | The QueryColumnExpression instance for the current function, which is generated taking into account the |
Overrides
Exceptions
Type | Condition |
---|---|
InvalidObjectStateException | If the expression of the function argument is |
GetArguments()
Gets the collection of expressions of function arguments.
Declaration
public override EntitySchemaQueryExpressionCollection GetArguments()
Returns
Type | Description |
---|---|
EntitySchemaQueryExpressionCollection | Collection of expressions of function arguments. |
Overrides
GetCaption()
Gets the caption of the expression function.
Declaration
public override string GetCaption()
Returns
Type | Description |
---|---|
System.String | String of the function caption. |
Overrides
GetIsSupportedDataValueType(DataValueType)
Indicates whether the output of the function has the specified data type.
Declaration
public override bool GetIsSupportedDataValueType(DataValueType dataValueType)
Parameters
Type | Name | Description |
---|---|---|
DataValueType | dataValueType | Data type. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
GetResultDataValueType(DataValueTypeManager)
Gets the data type of the output returned by the function, using the passed-in data type manager.
Declaration
public override DataValueType GetResultDataValueType(DataValueTypeManager dataValueTypeManager)
Parameters
Type | Name | Description |
---|---|---|
DataValueTypeManager | dataValueTypeManager | Data type manager. |
Returns
Type | Description |
---|---|
DataValueType | Data type of the output returned by the function. |
Overrides
SpecifyQueryAlias(String)
Specifies alias of function column in result of sql query.
Declaration
public void SpecifyQueryAlias(string queryAlias)
Parameters
Type | Name | Description |
---|---|---|
System.String | queryAlias | Alias for current function. |
WriteMetaData(DataWriter)
Serializes the function, using the specified DataWriter instance.
Declaration
public override void WriteMetaData(DataWriter writer)
Parameters
Type | Name | Description |
---|---|---|
DataWriter | writer | The DataWriter instance used for serialization. |