Share via


ColumnAttribute.IsVersion Property

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

Gets or sets whether the column type of the member is a database timestamp or version number.

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

Syntax

'Declaration
Public Property IsVersion As Boolean
public bool IsVersion { get; set; }

Property Value

Type: System.Boolean
Default value = false.

Remarks

Version numbers are incremented and timestamp columns are updated every time that the associated row is updated. (This property tells LINQ to SQL that a column should be updated to show that it is a new version; it is not meant to record information such as who made the update.)

Note the following when IsVersion is true:

  • Use DbType to specify the correct modifiers to designate a version number or timestamp column. If you do not specify DbType, LINQ to SQL infers the correct modifiers.

Version numbers are incremented and timestamp columns are updated every time that the associated row is updated. Members with IsVersion=true are synchronized immediately after the data row is updated. The new values are visible after SubmitChanges finishes.

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.