MetaDataMember::DbType Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the type of the corresponding database column.

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

property String^ DbType {
	virtual String^ get() abstract;

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.

.NET Framework
Available since 3.5
Windows Phone Silverlight
Available since 7.1
Return to top