RelationalDataProviderGetCastExpression Method

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

Namespace:  Dundas.BI.Data.DataProviders.Relational
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.4.0.1000)
Syntax
public abstract string GetCastExpression(
	DatabaseType targetType
)

Parameters

targetType
Type: Dundas.BI.DataDatabaseType
The target database type.

Return Value

Type: 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