Click or drag to resize
QueryColumnSqlFunctionsCast Method
Applies CAST function to the column.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 11.0.0
Syntax
C#
public static QueryColumn Cast(
	this QueryColumn column,
	string dataType,
	int size = 0,
	int precision = 0
)

Parameters

column
Type: CMS.DataEngineQueryColumn
Column used for required function.
dataType
Type: SystemString
Data type to which the cast should be done. Use constants defined in FieldDataType class.
size (Optional)
Type: SystemInt32
Size of the type
precision (Optional)
Type: SystemInt32
Precision of the type

Return Value

Type: QueryColumn

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type QueryColumn. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also