Specifies when objects are to be tested for concurrency conflicts.
Namespace:
System.Data.Linq.Mapping
Assembly:
System.Data.Linq (in System.Data.Linq.dll)
Visual Basic (Declaration)
Public Enumeration UpdateCheck
Dim instance As UpdateCheck
public enum class UpdateCheck
| Member name | Description |
|---|
| Always | Always check. |
| Never | Never check. |
| WhenChanged | Check only when the object has been changed. |
The code example after the table specifies that HomePage objects should never be tested.
<Column(Storage:="_HomePage", DbType:="NText", UpdateCheck:=UpdateCheck.Never)> _
Public Property HomePage() As String
Get
Return Me._HomePage
End Get
Set(ByVal value As String)
If ((Me._HomePage <> value) _
= false) Then
Me.OnHomePageChanging(value)
Me.SendPropertyChanging
Me._HomePage = value
Me.SendPropertyChanged("HomePage")
Me.OnHomePageChanged
End If
End Set
End Property
[Column(Storage="_HomePage", DbType="NText", UpdateCheck=UpdateCheck.Never)]
public string HomePage
{
get
{
return this._HomePage;
}
set
{
if ((this._HomePage != value))
{
this.OnHomePageChanging(value);
this.SendPropertyChanging();
this._HomePage = value;
this.SendPropertyChanged("HomePage");
this.OnHomePageChanged();
}
}
}
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
.NET Framework
Supported in: 3.5
Reference