This documentation is archived and is not being maintained.

How to: Specify Concurrency-Conflict Checking (LINQ to SQL)

You can specify which columns of the database are to be checked for concurrency conflicts when you call SubmitChanges. For more information, see How to: Specify Which Members are Tested for Concurrency Conflicts (LINQ to SQL).

The following code specifies that the HomePage member should never be tested during update checks. For more information, see UpdateCheck.


<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


Show: