Class EntitySchemaDateDiffQueryFunction
Represents query function for date diff.
Inherited Members
Namespace: Terrasoft.Core.Entities
Assembly: Terrasoft.Core.dll
Syntax
public class EntitySchemaDateDiffQueryFunction : EntitySchemaQueryFunction, IMetaItem, IMetaDataSerializable, ICloneable
Constructors
EntitySchemaDateDiffQueryFunction(EntitySchemaDateDiffQueryFunction)
Declaration
public EntitySchemaDateDiffQueryFunction(EntitySchemaDateDiffQueryFunction source)
Parameters
Type | Name | Description |
---|---|---|
EntitySchemaDateDiffQueryFunction | source |
EntitySchemaDateDiffQueryFunction(EntitySchemaQuery, DateDiffQueryFunctionInterval, EntitySchemaQueryExpression, EntitySchemaQueryExpression)
Declaration
public EntitySchemaDateDiffQueryFunction(EntitySchemaQuery parentQuery, DateDiffQueryFunctionInterval interval, EntitySchemaQueryExpression startDateExpression, EntitySchemaQueryExpression endDateExpression)
Parameters
Type | Name | Description |
---|---|---|
EntitySchemaQuery | parentQuery | |
DateDiffQueryFunctionInterval | interval | |
EntitySchemaQueryExpression | startDateExpression | |
EntitySchemaQueryExpression | endDateExpression |
Properties
EndDateExpression
Declaration
public EntitySchemaQueryExpression EndDateExpression { get; }
Property Value
Type | Description |
---|---|
EntitySchemaQueryExpression |
Interval
Declaration
public DateDiffQueryFunctionInterval Interval { get; }
Property Value
Type | Description |
---|---|
DateDiffQueryFunctionInterval |
QueryAlias
The alias of the function in the SQL query.
Declaration
public override string QueryAlias { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
StartDateExpression
Declaration
public EntitySchemaQueryExpression StartDateExpression { get; }
Property Value
Type | Description |
---|---|
EntitySchemaQueryExpression |
Methods
Clone()
Creates a new instance that is a copy of the current instance.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object |
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 query function. |
Overrides
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. |