You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ISSUE
the entityframework-api which this repository uses to save data base changes on updating(http put) schedules throws a DbUpdateConcurrencyException when updating schedules. The data base saves, but an exception may have future side effects. Below is the fix.
MODULE- dotnetcore-entityframework-api-master\Scheduler.Data\Repositories\EntityBaseRepository.cs
HANDLER- public virtual void Commit()
CHANGED FROM -
context.SaveChanges();
CHANGED TO +
try
{
_context.SaveChanges();
}
catch(DbUpdateConcurrencyException ex)
{
// nothing for now
}
The text was updated successfully, but these errors were encountered:
ISSUE
the entityframework-api which this repository uses to save data base changes on updating(http put) schedules throws a DbUpdateConcurrencyException when updating schedules. The data base saves, but an exception may have future side effects. Below is the fix.
MODULE- dotnetcore-entityframework-api-master\Scheduler.Data\Repositories\EntityBaseRepository.cs
HANDLER- public virtual void Commit()
CHANGED FROM -
context.SaveChanges();
CHANGED TO +
try
{
_context.SaveChanges();
}
catch(DbUpdateConcurrencyException ex)
{
// nothing for now
}
The text was updated successfully, but these errors were encountered: