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

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
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