Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View zoint's full-sized avatar

jmshapland zoint

View GitHub Profile
private async Task SaveChangesAsync()
{
try
{
await _dbContext.SaveChangesAsync();
}
catch (DbUpdateConcurrencyException ex)
{
//adapted from: https://docs.microsoft.com/en-us/ef/core/saving/concurrency
foreach (var entry in ex.Entries)