| DataTypeT Class |
Namespace: CMS.DataEngine
The DataTypeT type exposes the following members.
| Name | Description | |
|---|---|---|
| IsOfTypeFunction |
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.
| |
| mTextSerializer |
Serializer used to serialize and deserialize values of this data type.
(Inherited from DataType.) |
| Name | Description | |
|---|---|---|
| AllowAsAliasSource |
Returns true if the field can be used as an alias source
(Inherited from DataType.) | |
| AllowedObjectTypes |
When configured, only allows data type for the given object types.
Use case insensitive HashSet for the list of items
(Inherited from DataType.) | |
| AllowEmpty |
If true, the data type allows for nulls in the database
(Inherited from DataType.) | |
| CodeValueFormat |
Formatting code of the value for this type
(Inherited from DataType.) | |
| ConversionFunc |
Conversion function for this data type
| |
| ConversionMethod |
Returns the conversion method
(Overrides DataTypeConversionMethod.) | |
| DbConversionFunc |
Conversion function which converts value to its database representation.
If not defined, value is used without any conversions.
| |
| DbType |
Database type
(Inherited from DataType.) | |
| DefaultPrecision |
Default precision of the type, if the precision is variable
(Inherited from DataType.) | |
| DefaultSize |
Default size of the type, if the size is variable
(Inherited from DataType.) | |
| DefaultValue |
Default value for this data type
| |
| DefaultValueCode |
Code of the default value for this type
(Overrides DataTypeDefaultValueCode.) | |
| FieldType |
Field type
(Inherited from DataType.) | |
| GetFormatProvider |
Function which gets a format provider for the given culture
(Inherited from DataType.) | |
| HasConfigurableDefaultValue |
Returns true if the type has a default value
(Inherited from DataType.) | |
| Hidden |
If true, the data type is hidden
(Inherited from DataType.) | |
| IsDefaultType |
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.) | |
| MaxPrecision |
Maximum precision of the type, if the precision is variable
(Inherited from DataType.) | |
| MaxSize |
Maximum size of the type, if the size is variable
(Inherited from DataType.) | |
| MaxValueLength |
Maximum value length
(Inherited from DataType.) | |
| ObjectDefaultValue |
Default value for this data type
(Overrides DataTypeObjectDefaultValue.) | |
| SchemaType |
Type representation in the XML schema of the data
(Inherited from DataType.) | |
| SpecialDefaultValues |
List of special default values recognized by this type and treated as default value by the code
(Inherited from DataType.) | |
| SqlType |
SQL data type representation
(Inherited from DataType.) | |
| SqlValueFormat |
SQL value format. Default format is '{0}' to prevent SQL injection
(Inherited from DataType.) | |
| StringFormat |
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.) | |
| SupportsTranslation |
If true, the data type supports translation of the content
(Inherited from DataType.) | |
| TextSerializer |
Gets the IDataTypeTextSerializer instance for this data type.
(Inherited from DataType.) | |
| Type |
System type
(Inherited from DataType.) | |
| TypeAlias |
System type alias (e.g. bool for Boolean, etc.)
(Inherited from DataType.) | |
| TypeGroup |
Name of the group that groups together types with similar behavior, such as integer, decimal, string etc.
(Inherited from DataType.) | |
| TypeName |
Represents database type name
(Inherited from DataType.) | |
| VariablePrecision |
If true, the data type has variable precision
(Inherited from DataType.) | |
| VariableSize |
If true, the data type has variable size
(Inherited from DataType.) |
| Name | Description | |
|---|---|---|
| Convert |
Converts the value to a proper type
(Overrides DataTypeConvert(Object, CultureInfo, Object).) | |
| ConvertToDbType |
Converts the value to its database representation.
(Overrides DataTypeConvertToDbType(Object, CultureInfo, Object).) | |
| FormatValue |
Formats the given value
(Inherited from DataType.) | |
| GetDefaultValueCode |
Gets the code for the default value of this type in C# code
(Inherited from DataType.) | |
| GetSqlType |
Gets the SQL data type representation
(Inherited from DataType.) | |
| GetSqlValue |
Gets the SQL value representation for this type
(Inherited from DataType.) | |
| GetString |
Gets the string representation of the given value
(Inherited from DataType.) | |
| IsAvailableForObjectType |
Returns true if the given data type is available for the given object type
(Inherited from DataType.) | |
| IsValueOfType |
Uses IsOfTypeFunction to determine whether given value
is of this data type.
(Overrides DataTypeIsValueOfType(Object, CultureInfo).) |