Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException on many changes before SaveChangesAsync

SergeyKotelnikovApr 22 2019 — edited Dec 7 2019

Hello all! I faced the following. When I update DB with many changes before SaveChangesAsync I catch Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException: Database operation expected to affect 1 row(s) but actually affected 15394 row(s). I fixed it inserting SaveChangesAsync after each small piece of changes. I am sure that problem in the provider (Oracle.EntityFrameworkCore 2.18.0-beta3) because after I chaned it to Devart provider it works correctly. Maybe someone faced the similar problem and will help me. Thanks.

This post has been answered by Alex Keh-Oracle on Jun 18 2019
Jump to Answer
Comments
Post Details
Added on Apr 22 2019
12 comments
4,690 views