6 Replies Latest reply on Dec 7, 2019 4:31 PM by Alex Keh - Product Manager-Oracle

    BUG: DbUpdateConcurrencyException when updating and inserting multiple records


      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