5 Replies Latest reply on Oct 30, 2019 5:15 PM by Alex Keh - Product Manager-Oracle

    BUG: DbUpdateConcurrencyException when updating and inserting multiple records

    4119029

      When updating and adding multiple rows I am getting a DbConcurrency exception.  Note no table has more than 10 rows in it.  This only occurs when multiple rows are updated AND inserted within the same SaveChanges() operation.

       

      Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException: 'Database operation expected to affect 1 row(s) but actually affected 2858 row(s).

       

      The sample code is located here: https://github.com/inferno31/oefc-concurrency-issue

       

      Reproduction instructions here: https://github.com/inferno31/oefc-concurrency-issue/blob/master/WFConcurrencyIssue/Readme.md