LoginSignup
0
0

More than 5 years have passed since last update.

ASP.NET > LinqKit > doesn't implement IAsyncEnumerable.

Posted at

ASP.NET CoreにてLinqKitを使った際に、ToListAsyncを呼び出したら以下のようなエラーになりました。 の解決の備忘録

The source IQueryable doesn't implement IAsyncEnumerable. Only sources that implement IAsyncEnumerable can be used for Entity Framework asynchronous operations.

環境:
* ASP.NET Core2.1
* DB:SQL Server

LinqKit.Microsoft.EntityFrameworkCore

当初はLINQKit.Coreを使っていましたが、それは間違いで、LinqKit.Microsoft.EntityFrameworkCoreを使う必要があった模様です。

LinqKit and async in Entity Framework - Stack Overflow

こっち正解

NuGet Gallery | LinqKit.Microsoft.EntityFrameworkCore 1.1.15

こっち違う

NuGet Gallery | LINQKit.Core 1.1.15

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0