DataValueToString Method

Convert a value to String.

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static Object ValueToString(
	Object value,
	bool allowDBNull = true,
	bool emptyIsNull = true,
	int maxLength = 0,
	bool cutRight = true
)

Parameters

value  Object
Value 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.
maxLength  Int32  (Optional)
Maximum string length.
cutRight  Boolean  (Optional)
If the column is of type String then you can indicate that it be cut from the right in case it exceeds.

Return Value

Object
Object with the value converted.

See Also