ExtensionMethods..::..SaveEfChanges Method
A wrapper around DbContext SaveChanges. Saves the context changes and displays the exception to the user.
Namespace:
RingSoft.DbLookup.EfCoreAssembly: RingSoft.DbLookup.EfCore (in RingSoft.DbLookup.EfCore.dll)
Syntax
<ExtensionAttribute> _ Public Shared Function SaveEfChanges ( _ dbContext As DbContext, _ debugMessage As String, _ silent As Boolean _ ) As Boolean
[ExtensionAttribute] public: static bool^ SaveEfChanges( DbContext^ dbContext, String^ debugMessage, bool^ silent )
Parameters
- dbContext
- Type: DbContext
The database context.
- debugMessage
- Type: String
The debug message.
- silent
- Type: Boolean
if set to true [silent].