Get the CAST expression.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 10.0.0
Syntax 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:
StringExamples GetCast("ActivityValue", "FLOAT")
returns "CAST(ActivityValue AS INT)"
See Also