B.7. Functions

The following functions are also supported:

 CONVERT
Description Converts given expression to a specified .NET Framework Type.
Syntax Convert(expression, type)
Arguments expression — The expression to convert. type — The .NET Framework type to which the value will be converted.

Example: myDataColumn.Expression=“Convert(total, 'System.Int32')”

All conversions are valid with the following exceptions: Boolean can be coerced to and from Byte, SByte, Int16, Int32, Int64, UInt16, UInt32, UInt64, String, and itself only. Char can be coerced to and from Int32, UInt32, String, and itself only. DateTime can be coerced to and from String and itself only. TimeSpan can be coerced to and from String and itself only.

 LEN
Description Gets the ...

Get Essential ADO.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.