Compartir a través de


ColumnAttribute.UpdateCheck Property

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

Gets or sets how LINQ to SQL approaches the detection of optimistic concurrency conflicts.

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

Syntax

'Declaration
Public Property UpdateCheck As UpdateCheck
public UpdateCheck UpdateCheck { get; set; }

Property Value

Type: System.Data.Linq.Mapping.UpdateCheck
Default = Always, unless IsVersion is true for a member.
Other values are Never and WhenChanged.

Remarks

When this property is used with one of three enums, it determines how LINQ to SQL detects concurrency conflicts.

If no member is designed as IsVersion=true, original member values are compared with the current database state.

The following enums are available:

  • Always   Always use this column for conflict detection.

  • Never   Never use this column for conflict detection.

  • WhenChanged   Use this column only when the member has been changed by the application.

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.