Click or drag to resize
DataTypeT Class
Data type definition
Inheritance Hierarchy
SystemObject
  CMS.DataEngineDataType
    CMS.DataEngineDataTypeT

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax
C#
public class DataType<T> : DataType

Type Parameters

T

The DataTypeT type exposes the following members.

Constructors
  NameDescription
Public methodDataTypeT(String, String, String, FuncObject, T, CultureInfo, T)
Constructor
Public methodDataTypeT(String, String, String, FuncObject, T, CultureInfo, T, FuncObject, CultureInfo, Boolean)
Constructor
Public methodDataTypeT(String, String, String, FuncObject, T, CultureInfo, T, FuncT, Object, CultureInfo, Object, IDataTypeTextSerializer)
Constructor
Public methodDataTypeT(String, String, String, FuncObject, T, CultureInfo, T, FuncT, Object, CultureInfo, Object, IDataTypeTextSerializer, FuncObject, CultureInfo, Boolean)
Constructor
Top
Fields
  NameDescription
Protected fieldIsOfTypeFunction
Function used to determine whether a given value is of this data type. If left null, all objects are considered to be of this type.
Protected fieldmTextSerializer
Serializer used to serialize and deserialize values of this data type.
(Inherited from DataType.)
Top
Properties
  NameDescription
Public propertyAllowAsAliasSource
Returns true if the field can be used as an alias source
(Inherited from DataType.)
Public propertyAllowedObjectTypes
When configured, only allows data type for the given object types. Use case insensitive HashSet for the list of items
(Inherited from DataType.)
Public propertyAllowEmpty
If true, the data type allows for nulls in the database
(Inherited from DataType.)
Public propertyCodeValueFormat
Formatting code of the value for this type
(Inherited from DataType.)
Protected propertyConversionFunc
Conversion function for this data type
Public propertyConversionMethod
Returns the conversion method
(Overrides DataTypeConversionMethod.)
Protected propertyDbConversionFunc
Conversion function which converts value to its database representation. If not defined, value is used without any conversions.
Public propertyDbType
Database type
(Inherited from DataType.)
Public propertyDefaultPrecision
Default precision of the type, if the precision is variable
(Inherited from DataType.)
Public propertyDefaultSize
Default size of the type, if the size is variable
(Inherited from DataType.)
Public propertyDefaultValue
Default value for this data type
Public propertyDefaultValueCode
Code of the default value for this type
(Overrides DataTypeDefaultValueCode.)
Public propertyFieldType
Field type
(Inherited from DataType.)
Public propertyGetFormatProvider
Function which gets a format provider for the given culture
(Inherited from DataType.)
Public propertyHasConfigurableDefaultValue
Returns true if the type has a default value
(Inherited from DataType.)
Public propertyHidden
If true, the data type is hidden
(Inherited from DataType.)
Public propertyIsDefaultType
If true, the data type is considered default. Types marked as default are replaced only by default types in the type mapping tables.
(Inherited from DataType.)
Public propertyMaxPrecision
Maximum precision of the type, if the precision is variable
(Inherited from DataType.)
Public propertyMaxSize
Maximum size of the type, if the size is variable
(Inherited from DataType.)
Public propertyMaxValueLength
Maximum value length
(Inherited from DataType.)
Public propertyObjectDefaultValue
Default value for this data type
(Overrides DataTypeObjectDefaultValue.)
Public propertySchemaType
Type representation in the XML schema of the data
(Inherited from DataType.)
Public propertySpecialDefaultValues
List of special default values recognized by this type and treated as default value by the code
(Inherited from DataType.)
Public propertySqlType
SQL data type representation
(Inherited from DataType.)
Public propertySqlValueFormat
SQL value format. Default format is '{0}' to prevent SQL injection
(Inherited from DataType.)
Public propertyStringFormat
If defined, the given format is used to convert the value of this type to a string value. {0} represents the value.
(Inherited from DataType.)
Public propertySupportsTranslation
If true, the data type supports translation of the content
(Inherited from DataType.)
Public propertyTextSerializer
Gets the IDataTypeTextSerializer instance for this data type.
(Inherited from DataType.)
Public propertyType
System type
(Inherited from DataType.)
Public propertyTypeAlias
System type alias (e.g. bool for Boolean, etc.)
(Inherited from DataType.)
Public propertyTypeGroup
Name of the group that groups together types with similar behavior, such as integer, decimal, string etc.
(Inherited from DataType.)
Public propertyTypeName
Represents database type name
(Inherited from DataType.)
Public propertyVariablePrecision
If true, the data type has variable precision
(Inherited from DataType.)
Public propertyVariableSize
If true, the data type has variable size
(Inherited from DataType.)
Top
Methods
  NameDescription
Public methodConvert
Converts the value to a proper type
(Overrides DataTypeConvert(Object, CultureInfo, Object).)
Public methodConvertToDbType
Converts the value to its database representation.
(Overrides DataTypeConvertToDbType(Object, CultureInfo, Object).)
Protected methodFormatValue
Formats the given value
(Inherited from DataType.)
Public methodGetDefaultValueCode
Gets the code for the default value of this type in C# code
(Inherited from DataType.)
Public methodGetSqlType
Gets the SQL data type representation
(Inherited from DataType.)
Public methodGetSqlValue
Gets the SQL value representation for this type
(Inherited from DataType.)
Public methodGetString
Gets the string representation of the given value
(Inherited from DataType.)
Public methodIsAvailableForObjectType
Returns true if the given data type is available for the given object type
(Inherited from DataType.)
Public methodIsValueOfType
Uses IsOfTypeFunction to determine whether given value is of this data type.
(Overrides DataTypeIsValueOfType(Object, CultureInfo).)
Top
See Also