Skip to content

DbUpdateConcurrencyException in entityframework-api #5

@gitonworld

Description

@gitonworld

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions