DomainObjects Class Library

ConvertTo Constructor (ValueType, SqlDbType, Nullable<T>, Nullable<T>)

Converts the given value to the given convertToType.

public ConvertTo(
   ValueType value,
   SqlDbType convertToType,
   Nullable<T> convertToLength,
   Nullable<T> style
);

Parameters

value
The value to convert.
convertToType
The database type to which the field will be converted.
convertToLength
The length to which the field will be converted.
style
The date format to use when converting a date to a string, or the string format to use when converting float, real, money, or smallmoney data to a string.

See Also

ConvertTo Class | DomainObjects.Facade.Command.Function Namespace | ConvertTo Constructor Overload List