Class QueryColumnSqlFunctions
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
Provides extension methods with SQL functions applicable to the QueryColumn object.
[Obsolete("Class was not intended for public use and will be removed.")]
public static class QueryColumnSqlFunctions
- Inheritance
-
objectQueryColumnSqlFunctions
Methods
Cast(QueryColumn, string, int, int)
Applies CAST function to the column.
public static QueryColumn Cast(this QueryColumn column, string dataType, int size = 0, int precision = 0)
Parameters
columnQueryColumnColumn used for required function.
dataTypestringData type to which the cast should be done. Use constants defined in FieldDataType class.
sizeintSize of the type
precisionintPrecision of the type
Returns
IsNull(QueryColumn, object)
Applies ISNULL function to the column.
public static QueryColumn IsNull(this QueryColumn column, object nullReplacement)
Parameters
columnQueryColumnColumn used for required function.
nullReplacementobjectReplacement expression used instead of null value. Value must be of a type that is implicitly convertible to the type of the column.