DataValueToType(Object, Type, Boolean, Boolean) Method
Converts a value to the indicated column type.
Namespace: Aliquo.CoreAssembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
public static Object ValueToType(
Object value,
Type dataType,
bool allowDBNull = true,
bool emptyIsNull = true
)
Public Shared Function ValueToType (
value As Object,
dataType As Type,
Optional allowDBNull As Boolean = true,
Optional emptyIsNull As Boolean = true
) As Object
- value Object
- Value to convert.
- dataType Type
- Type to convert.
- allowDBNull Boolean (Optional)
- Indicates whether null values are allowed.
- emptyIsNull Boolean (Optional)
- If the field is of type String then it can be set to if it is empty.
ObjectObject with the value converted.