Closed BehroozBahrameh closed 1 month ago
8.21.140
is the ODP.NET 21c version and 8.23.40
is the ODP.NET 23ai version. Async support was added in ODP.NET 23ai, which is why you can see different behavior when upgrading.
Under the covers, async calls using ODP.NET 21c would be executed synchronously instead.
Back to your original problem. The question then becomes whether this is an EF Core error or ODP.NET error. What I see from the error is a EF Core issue so far. Do you see an ORA error if you handle the exception? Alternatively, you can turn on ODP.NET tracing to see if an ORA error occurs.
Another way to verify is to execute the same code with another EF Core provider, such an npgsql or sqlclient. If the same error occurs, then it's very likely to be an EF Core issue (or not a supported use in EF Core as the error link describes.
Thank you so much for your reply, I wrote a sample app with progress and yes, you are right, the same issue exists.
background
migration from 8.21.140 to 8.23.40
scenario
Bellow execution tried to execute two read requests on the DB from the same repository,
repository implementation :
Context registration :
Issue
The above code works perfectly with
8.21.140
and as soon as you update to8.23.40
you get bellow exception: