Closed SOHODeveloper closed 3 years ago
This project doesn't support EF Core 5 yet. The namespace of IAsyncQueryProvider changed between EFCore 3.1 and EFCore 5. Since this project is still searching for it via its 3.1 namespace you get the error you mentioned, using this project with EFCore 5.
On a happier note: a PR has been opened to add support for EFCore 5 (https://github.com/hazzik/DelegateDecompiler/pull/164). Once that gets merged everything should just work!
As per @nphmuller EF Core 5.0 is not yet supported.
Please use DelegateDecompiler.EntityFramework5
package.
I am running .net core 5.0 preview 7.
I have the following extension method
The ProjectTo() is from AutoMapper in the AutoMapper.QueryableExtensions namespace As written the line b = a.DecompileAsync() causes the following exception.
If I change the DecompileAsync() to Decompile(), the next line throws and indicates that b is not an IAsyncEnumberable.
I will be perfectly honest, that a lot of this is over my head, but I have confirmed that EntityFrameCore dll is present and have used it in a non-async query just 2 lines before calling my extension method.
Thanks for this great package.