UpdateCheck Enumeration

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)

Public Enumeration UpdateCheck

Member nameDescription
Always

Always check. This is the default unless IsVersion is true for a member.

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

.NET Framework
Available since 3.5
Windows Phone Silverlight
Available since 7.1
Return to top
Show:
© 2016 Microsoft