Click or drag to resize
DataTypeT Constructor (String, String, String, FuncObject, T, CultureInfo, T, FuncT, Object, CultureInfo, Object, IDataTypeTextSerializer, FuncObject, CultureInfo, Boolean)
Constructor

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax
C#
public DataType(
	string sqlType,
	string fieldType,
	string schemaType,
	Func<Object, T, CultureInfo, T> conversionFunc,
	Func<T, Object, CultureInfo, Object> dbConversionFunc,
	IDataTypeTextSerializer textSerializer,
	Func<Object, CultureInfo, bool> validationFunction
)

Parameters

sqlType
Type: SystemString
SQL type
fieldType
Type: SystemString
Field type
schemaType
Type: SystemString
Schema type
conversionFunc
Type: SystemFuncObject, T, CultureInfo, T
Conversion function
dbConversionFunc
Type: SystemFuncT, Object, CultureInfo, Object
Function which converts value to its database representation.
textSerializer
Type: CMS.DataEngineIDataTypeTextSerializer
Text serializer used for this type.
validationFunction
Type: SystemFuncObject, CultureInfo, Boolean
Determines whether passed object value is of this data type.
See Also