hazzik / DelegateDecompiler

A library which is able to decompile a delegate or a method body to its lambda representation
MIT License
522 stars 62 forks source link

Delegate Decompiler with in-memory databases #217

Closed Aleksaas closed 1 year ago

Aleksaas commented 1 year ago

I tried using DelegateDecompiler with EF core in-memory database and with SQLite in-memory in tests and I get this error:

`The provider for the source 'IQueryable' doesn't implement 'IAsyncQueryProvider'. Only providers that implement 'IAsyncQueryProvider' can be used for Entity Framework asynchronous operations.`

I use .net core 7 and this is setup in test:

            var options = new DbContextOptionsBuilder<AdminDatabaseContext>()
                .UseSqlite("DataSource=:memory:")
                .Options;

            _ctx = new AdminDatabaseContext(options);

Does this mean that DelegateDecompiler cannot be used with in-memory databases?

Aleksaas commented 1 year ago

Closing this, my bad. I accidentally installed DelegateDecompiler.EntityFramework instead of DelegateDecompiler.EntityFrameworkCore5.