You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, when I tried to switch to EF Core I realized that context's SaveChangesAsync doesn't use TransactionalBatch and therefore it saves entities separately.
It is a problem in a situation when we change one entity and add another one:
Book entity is blocked
Reservation entity is created
When updating the Book entity fails because of ETag concurrency, creating the Reservation entity succeeds and we end up with an invalid state.
Would it be possible to introduce TransactionalBatch functionality to EF Core?
The text was updated successfully, but these errors were encountered:
Currently, there is an option to save objects to the CosmosDB in transaction using Transactional Batch
Unfortunately, when I tried to switch to EF Core I realized that context's
SaveChangesAsync
doesn't useTransactionalBatch
and therefore it saves entities separately.It is a problem in a situation when we change one entity and add another one:
When updating the Book entity fails because of ETag concurrency, creating the Reservation entity succeeds and we end up with an invalid state.
Would it be possible to introduce
TransactionalBatch
functionality to EF Core?The text was updated successfully, but these errors were encountered: