RelationalDataProviderGetDateTrimFunction Method (IProviderConnector, DateTimeGranularity, String)

Returns a function that can be used to 'trim date/time' values to a specified grain.

Namespace:  Dundas.BI.Data.DataProviders.Relational
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax
public virtual string GetDateTrimFunction(
	IProviderConnector dataConnector,
	DateTimeGranularity dateGranularity,
	string dataTypeName
)

Parameters

dataConnector
Type: Dundas.BI.Data.DataProvidersIProviderConnector
The data connector.
dateGranularity
Type: Dundas.BI.DataDateTimeGranularity
Grain of the 'date/time'.
dataTypeName
Type: SystemString
Original name of the 'date/time' data type.

Return Value

Type: String
Date trimming function.
Remarks
Used for query generation.

{0} is used as a placeholder for the 'date/time' column or variable.
See Also