TabularProviderGetCastExpression Method

Gets a data conversion expression, used in general for avoiding overflow exceptions when using aggregates.

Namespace: Dundas.BI.Data.DataProviders.Special
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (26.2.0.1000)
Syntax
public override string? GetCastExpression(
	DatabaseType targetType
)

Parameters

targetType  DatabaseType
The target database type.

Return Value

String
The corresponding convert expression.
Remarks
Used for query generation to avoid an overflow when using aggregate functions.

For example, for SQL Server should return CONVERT(BIGINT, {0}) if target type is Int64.

If the data provider does not support casting or conversion, the function returns .

See Also