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

ExtensionMethods..::..SaveEfChanges Method

A wrapper around DbContext SaveChanges. Saves the context changes and displays the exception to the user.

Namespace:  RingSoft.DbLookup.EfCore
Assembly:  RingSoft.DbLookup.EfCore (in RingSoft.DbLookup.EfCore.dll)

Syntax


public static bool SaveEfChanges(
	this DbContext dbContext,
	string debugMessage,
	bool silent
)
<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].

Return Value

True, if data was saved without exceptions.