ColumnAttribute::UpdateCheck Property
Gets or sets how LINQ to SQL approaches the detection of optimistic concurrency conflicts.
Assembly: System.Data.Linq (in System.Data.Linq.dll)
public: property UpdateCheck UpdateCheck { UpdateCheck get (); void set (UpdateCheck value); }
Property Value
Type: System.Data.Linq.Mapping::UpdateCheckDefault = Always, unless IsVersion is true for a member.
Other values are Never and WhenChanged.
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.
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.