Click or drag to resize
SqlHelperGetCast Method
Get the CAST expression.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax
C#
public static string GetCast(
	string value,
	string type
)

Parameters

value
Type: SystemString
Value to be casted
type
Type: SystemString
Type the value should be casted to

Return Value

Type: String
Examples
GetCast("ActivityValue", "FLOAT")
returns "CAST(ActivityValue AS INT)"
See Also