Export (0) Print
Expand All

UpdateCheck Enumeration

Specifies when objects are to be tested for concurrency conflicts.

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

'Declaration
Public Enumeration UpdateCheck

Member nameDescription
AlwaysAlways check. This is the default unless IsVersion is true for a member.
NeverNever check.
WhenChangedCheck 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

.NET Framework

Supported in: 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft