| 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 (25.3.0.1000)
 Syntax
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
- Type: Dundas.BI.DataDatabaseType
 The target database type.
Return Value
Type: 
StringThe corresponding convert expression.
 Remarks
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
See Also