ChangeAction Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes the type of change the entity will undergo when changes are submitted to the database.
public enum class ChangeAction
public enum ChangeAction
type ChangeAction =
Public Enum ChangeAction
- Inheritance
Fields
Delete | 1 | The entity will be deleted. |
Insert | 2 | The entity will be inserted. |
None | 0 | The entity will not be submitted. |
Update | 3 | The entity will be updated. |
Examples
void OnValidate(ChangeAction action)
{
if (action == ChangeAction.Insert)
{
Console.WriteLine("Notify billing office.");
}
}
Public Sub OnValidate(ByVal action As System.Data.Linq.ChangeAction)
If action = ChangeAction.Insert Then
Console.WriteLine("Notify billing office.")
End If
End Sub
Remarks
Use with OnValidate()
in LINQ to SQL applications to specify or omit validation based on the type of change being submitted.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για