DomainObjects Class Library

ConvertTo Constructor (Field, SqlDbType, Nullable<T>, Int32)

Converts the value of the given field to the given convertToType.

public ConvertTo(
   Field fieldToConvert,
   SqlDbType convertToType,
   Nullable<T> convertToLength,
   Int32 style
);

Parameters

fieldToConvert
The field 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