Condividi tramite


ColumnAttribute.DbType Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the type of the database column.

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

Syntax

'Declaration
Public Property DbType As String
public string DbType { get; set; }

Property Value

Type: System.String
See Remarks.

Remarks

Use this property to specify the exact text that defines the column in a Transact-SQL table declaration. Specify the DbType property only if you plan to use CreateDatabase to create an instance of the database.

The default value of DbType is inferred from the member type.

Version Information

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.