ExtensionMethods Methods
The ExtensionMethods type exposes the following members.
Methods
Name | Description | |
---|---|---|
AddNewEntity<(Of <<'(TEntity>)>>) |
Adds a new entity and commits the changes. Use for entities whose primary key field is not an auto-increment type. Outputs all errors to the DbDataProcessor SqlErrorViewer.
|
|
AddNewNoCommitEntity<(Of <<'(TEntity>)>>) |
Adds a new entity but does not commit the changes. Use for entities whose primary key field is not an auto-increment type. Outputs all errors to the DbDataProcessor SqlErrorViewer.
|
|
DeleteEntity<(Of <<'(TEntity>)>>) |
Deletes the entity and commits the changes. Outputs all errors to the DbDataProcessor SqlErrorViewer.
|
|
DeleteNoCommitEntity<(Of <<'(TEntity>)>>) |
Deletes the entity but does not commit the changes. Outputs all errors to the DbDataProcessor SqlErrorViewer.
|
|
ProcessException |
Processes the exception.
|
|
SaveEfChanges |
A wrapper around DbContext SaveChanges. Saves the context changes and displays the exception to the user.
|
|
SaveEntity<(Of <<'(TEntity>)>>) |
Adds or updates the entity and commits the changes. Adding only works if the entity's primary key field is an auto increment type. Outputs all errors to the DbDataProcessor SqlErrorViewer.
|
|
SaveNoCommitEntity<(Of <<'(TEntity>)>>) |
Adds or updates the entity but does not commit the changes. Only works if the entity's primary key field is an auto increment type. Outputs all errors to the DbDataProcessor SqlErrorViewer.
|