RelationalDataProviderGetCastExpression Method |
Gets a data conversion expression, used in general for avoiding overflow exceptions when using aggregates.
Namespace: Dundas.BI.Data.DataProviders.RelationalAssembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (26.2.0.1000)
Syntaxpublic abstract string? GetCastExpression(
DatabaseType targetType
)
Public MustOverride Function GetCastExpression (
targetType As DatabaseType
) As String
public:
virtual String^ GetCastExpression(
DatabaseType targetType
) abstract
abstract GetCastExpression :
targetType : DatabaseType -> string Parameters
- targetType DatabaseType
- The target database type.
Return Value
StringThe 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