Export (0) Print
Expand All

ColumnAttribute.IsDbGenerated Property

Gets or sets whether a column contains values that the database auto-generates.

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

public bool IsDbGenerated { get; set; }

Property Value

Type: System.Boolean
Default = false.

IsDbGenerated members are synchronized immediately after the row of data is inserted, and the members are available after SubmitChanges is completed.


If the column holds primary key values and you designate IsDbGenerated as true, you should also add the DbType property by using the IDENTITY modifier.

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

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

Community Additions

© 2014 Microsoft