Property Types

Telerik Data Access mapping types are specific types that describe data model in the ORM. Each mapping type is associated to some .NET and DB type. Telerik Data Access types execute bridge functionality between DB types and .NET types to map them.

There are two main type groups: entities and value types. Value types represent simple data types as numeric values, character values, etc. Entity types are a kind of composite type that consists of simple value types. Value types are used for mapping DB table fields, whereas entities are used to describe DB tables. There are a lot of built-in mapping types in Telerik Data Access. Some of them can be mapped to few .NET types, and others have strict typing and do not support type conversion. Telerik Data Access also has a possibility to create and use custom mapping types that extends the possibility of mapping types using.

Entity Developer for Telerik Data Access provides the possibility to specify Telerik Data Access property types, complex types and enum types.

Below is the description of Telerik Data Access types available in Entity Developer for Telerik Data Access.

 

ExpandedToggleIconMapping Types

Telerik Data Access Type

.NET Type

Database Type

Binary

System.Byte[]

DbType.Binary

Bit

System.Boolean

DbType.Boolean

Blob

System.Byte[]

DbType.Binary

Boolean

System.Boolean

DbType.Boolean

Byte

System.SByte

DbType.SByte

Character

System.Char

DbType.StringFixedLength

Clob

System.String

DbType.String

Currency

System.Decimal

DbType.Currency

Cursor

System.Object

DbType.Object

Date

System.DateTime

DbType.Date

DateTime

System.DateTime

DbType.DateTime

Decimal

System.Decimal

DbType.Decimal

Double

System.Double

DbType.Double

Filestream

System.Byte[]

DbType.Binary

Float

System.Single

DbType.Single

Guid

System.Guid

DbType.Guid

Int16

System.Int16

DbType.Int16

Int32

System.Int32

DbType.Int32

Int64

System.Int64

DbType.Int64

LongVarBinary

System.Byte[]

DbType.Binary

LongVarchar

System.String

DbType.String

Numeric

System.Decimal

DbType.Decimal

Object

System.Object

DbType.Object

Other

System.Object

DbType.Object

Real

System.Single

DbType.Single

StringFixedLength

System.String

DbType.AnsiStringFixedLength

StringInfiniteLength

System.String

DbType.AnsiString

StringVariableLength

System.String

DbType.AnsiString

Time

System.TimeSpan

DbType.Time

UInt64

System.UInt64

DbType.UInt64

Undefined

System.Object

DbType.Object

UnicodeCharacter

System.UInt32

DbType.UInt32

UnicodeStringFixedLength

System.String

DbType.StringFixedLength

UnicodeStringInfiniteLength

System.String

DbType.String

UnicodeStringVariableLength

System.String

DbType.String

VarBinary

System.Byte[]

DbType.Binary

Varchar

System.String

DbType.String

Variant

System.String

DbType.String

The type of a property is specified in the Type drop-down list in the Property Editor dialog box. Besides basic Telerik Data Access types, as a Type of a property it is also possible to select ComplexType or EnumType objects declared in your model. It is also possible to assign any class name of a custom type as a Type of a property. If you use a certain custom type very often, it may be useful to define a shorter name for it. You can do this by defining a TypeDef in the model for your custom type. Note that you have to specify full assembly-qualified names for all except basic NHibernate types.

 

ExpandedToggleIcon        See Also


Send feedback on this topic

© 2008 - 2024 Devart. All rights reserved.