urfnet / URF.Core

Unit of Work & Repositories Framework - .NET Core, NET Standard, Entity Framework Core. 100% extensible & lightweight.
https://github.com/urfnet
MIT License
309 stars 62 forks source link

FindOneAndReplaceAsync Issue #89

Open gdloacev opened 2 years ago

gdloacev commented 2 years ago

The method FindOneAndReplaceAsync sometimes return the wrong entity because internally has an async method for replace the entity and after has a return with another async method for get the entity, the problem is sometimes the get method finish first and return the entity without the changes. This issue cause in my case a concurrency exception because don´t update the eTag field. URF Core Issue