ColumnAttribute.DbType Property
Gets or sets the type of the database column.
Assembly: System.Data.Linq (in System.Data.Linq.dll)
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. For more information, see SQL-CLR Type Mapping (LINQ to SQL).
[Column(Storage="_FirstName", DbType="NVarChar(10) NOT NULL", CanBeNull=false)] public string FirstName { get { return this._FirstName; } set { if ((this._FirstName != value)) { this.OnFirstNameChanging(value); this.SendPropertyChanging(); this._FirstName = value; this.SendPropertyChanged("FirstName"); this.OnFirstNameChanged(); } } }
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.