Class EntitySchemaDateToCurrentYearQueryFunction
Represents a function that converts the date expression into the same date in the current year.
Inheritance
Inherited Members
Namespace: Terrasoft.Core.Entities
Assembly: Terrasoft.Core.dll
Syntax
public class EntitySchemaDateToCurrentYearQueryFunction : EntitySchemaQueryFunction, IMetaItem, IMetaDataSerializable, ICloneable
Constructors
EntitySchemaDateToCurrentYearQueryFunction(EntitySchemaDateToCurrentYearQueryFunction)
Initializes new instance of EntitySchemaDateToCurrentYearQueryFunction which is clone of other instance.
Declaration
public EntitySchemaDateToCurrentYearQueryFunction(EntitySchemaDateToCurrentYearQueryFunction source)
Parameters
Type | Name | Description |
---|---|---|
EntitySchemaDateToCurrentYearQueryFunction | source | Instance of EntitySchemaDateToCurrentYearQueryFunction to be cloned. |
EntitySchemaDateToCurrentYearQueryFunction(EntitySchemaQuery)
Initializes new instance of EntitySchemaDateToCurrentYearQueryFunction
which is part of provided parentQuery
.
Declaration
public EntitySchemaDateToCurrentYearQueryFunction(EntitySchemaQuery parentQuery)
Parameters
Type | Name | Description |
---|---|---|
EntitySchemaQuery | parentQuery | Instance of EntitySchemaQuery. |
EntitySchemaDateToCurrentYearQueryFunction(EntitySchemaQuery, EntitySchemaQueryExpression)
Initializes a new instance of EntitySchemaDateToCurrentYearQueryFunction for the given date expression.
Declaration
public EntitySchemaDateToCurrentYearQueryFunction(EntitySchemaQuery parentQuery, EntitySchemaQueryExpression expression)
Parameters
Type | Name | Description |
---|---|---|
EntitySchemaQuery | parentQuery | Instance of EntitySchemaQuery. |
EntitySchemaQueryExpression | expression | Query expression. |
Properties
Expression
Expression of the function argument.
Declaration
public EntitySchemaQueryExpression Expression { get; set; }
Property Value
Type | Description |
---|---|
EntitySchemaQueryExpression |
QueryAlias
Alias function in sql query.
Declaration
public override string QueryAlias { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
Clone()
Creates a clone of the current instance EntitySchemaDatePartQueryFunction.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | Instance System.Object, is a clone of the current instance of the function. |
Overrides
CreateQueryColumnExpression(DBSecurityEngine)
Returns the query column expression for the current function, generated with the specified access rights.
Declaration
public override QueryColumnExpression CreateQueryColumnExpression(DBSecurityEngine dbSecurityEngine)
Parameters
Type | Name | Description |
---|---|---|
DBSecurityEngine | dbSecurityEngine | Instance of DBSecurityEngine, which defines the access rights. |
Returns
Type | Description |
---|---|
QueryColumnExpression | Instance of QueryColumnExpression for the current function, formed with regard to
access rights of |
Overrides
GetArguments()
Returns a collection of function argument expressions.
Declaration
public override EntitySchemaQueryExpressionCollection GetArguments()
Returns
Type | Description |
---|---|
EntitySchemaQueryExpressionCollection | A collection of function argument expressions. |
Overrides
GetCaption()
Returns the header of the expression function.
Declaration
public override string GetCaption()
Returns
Type | Description |
---|---|
System.String | The function header line. |
Overrides
GetIsSupportedDataValueType(DataValueType)
Specifies whether the result returned by the function is 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)
Returns the data type of the result returned by the function, using the passed data type manager.
Declaration
public override DataValueType GetResultDataValueType(DataValueTypeManager dataValueTypeManager)
Parameters
Type | Name | Description |
---|---|---|
DataValueTypeManager | dataValueTypeManager | Data type manager. |
Returns
Type | Description |
---|---|
DataValueType | The data type of the result returned by the function. |