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 (24.3.0.1000)
Syntax public override string GetCastExpression(
DatabaseType targetType
)
Public Overrides Function GetCastExpression (
targetType As DatabaseType
) As String
public:
virtual String^ GetCastExpression(
DatabaseType targetType
) override
abstract GetCastExpression :
targetType : DatabaseType -> string
override GetCastExpression :
targetType : DatabaseType -> string
Parameters
- targetType
- Type: Dundas.BI.DataDatabaseType
The target database type.
Return Value
Type:
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