Open KenBonny opened 10 months ago
query
doesn't support async enumeration by itself, it just returns IQueryable
which contains the query.
It's hard to say what exactly is ToListAsync
trying to do with it. This should probably be raised with @dotnet/efteam to clarify.
I'm writing a POC to see how viable F# is for our new project. I have set up an in memory database with EF Core, as I want to give the current developers some points of recognition while highlighting some interesting new ways of doing things. One of those things is to use a
query
builder. When I use mydb.Drones
to get all the drones and I callSeq.toList
, it all works fine. When I instead useEntityFrameworkQueryableExtensions.ToListAsync
I get the error InvalidOperationException: The source 'IQueryable' doesn't implement 'IAsyncEnumerable<Drone.Api.Features.GetDrones+DroneDto>'.Working version:
Version that throws error:
Expectation: A way to query my database in an async manner.