ChangeAction Enumeration


Describes the type of change the entity will undergo when changes are submitted to the database.

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

Public Enumeration ChangeAction

Member nameDescription

The entity will be deleted.


The entity will be inserted.


The entity will not be submitted.


The entity will be updated.

Use with OnValidate() in LINQ to SQL applications to specify or omit validation based on the type of change being submitted.

Public Sub OnValidate(ByVal action As System.Data.Linq.ChangeAction)
    If action = ChangeAction.Insert Then
        Console.WriteLine("Notify billing office.")
    End If
End Sub

.NET Framework
Available since 3.5
Windows Phone Silverlight
Available since 7.1
Return to top