[CSHARP-3864] Implement IAsyncQueryProvider Created: 17/Sep/21  Updated: 07/Oct/21  Resolved: 24/Sep/21

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Unknown
Reporter: Richard Collette Assignee: Dmitry Lukyanov (Inactive)
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

{
  "invalid-operation": [
    "The provider for the source 'IQueryable' doesn't implement 'IAsyncQueryProvider'. Only providers that implement 'IAsyncQueryProvider' can be used for Entity Framework asynchronous operations."
  ]
} 

I would like to make my LINQ queries non-blocking



 Comments   
Comment by Richard Collette [ 07/Oct/21 ]

Is this considered a third party interface as well (System.LINQ.Async)? 
https://github.com/dotnet/reactive/search?q=IAsyncQueryable

Comment by Richard Collette [ 21/Sep/21 ]

Hmm, it's interesting that they didn't defined this in the LINQ namespace.

Comment by Dmitry Lukyanov (Inactive) [ 21/Sep/21 ]

Hello richard.collette@gmail.com ,

thanks for your report. IAsyncQueryProvider is a part of EntityFrameworkCore, not .net itself. Given this, we don't think that we should inherit our classes from 3rd party interfaces (even Microsoft's one).

Generated at Wed Feb 07 21:46:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.