DbType Property

MetaDataMember.DbType Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the type of the corresponding database column.

Namespace:  System.Data.Linq.Mapping
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

public abstract string DbType { get; }

Property Value

Type: System.String
The type of the database column as a string.

This will be the exact text used to define the column in a Transact-SQL table declaration command. If not so defined, the database column type is inferred from the member type.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft