RingSoft.DbLookup.Controls.WPF.Properties Namespace
RingSoft.DbMaintenance Namespace

ExtensionMethods Methods

The ExtensionMethods type exposes the following members.

Methods


  Name Description
Public method Static member 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.
Public method Static member 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.
Public method Static member DeleteEntity<(Of <<'(TEntity>)>>)
Deletes the entity and commits the changes. Outputs all errors to the DbDataProcessor SqlErrorViewer.
Public method Static member DeleteNoCommitEntity<(Of <<'(TEntity>)>>)
Deletes the entity but does not commit the changes. Outputs all errors to the DbDataProcessor SqlErrorViewer.
Public method Static member ProcessException
Processes the exception.
Public method Static member SaveEfChanges
A wrapper around DbContext SaveChanges. Saves the context changes and displays the exception to the user.
Public method Static member 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.
Public method Static member 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.