IsDbGenerated Property
Collapse the table of content
Expand the table of content

ColumnAttribute.IsDbGenerated Property

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

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.

NoteNote:

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.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft