LinqKit and async in Entity Framework

entity-framework entity-framework-core linqkit predicatebuilder

Question

I am getting the following error when using the predicate builder with Entity Framework Core.

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

This is the code -

 List<Member> results = await _context.Members.AsExpandable().Where(predicate).ToListAsync();

This the exact version of EF I'm using

  <package id="EntityFramework.Core" version="7.0.0-rc1-final" targetFramework="net451" />
1
4
3/9/2016 10:42:25 PM

Popular Answer

This is supported in a different Nuget package than normal LinqKit.

See: https://www.nuget.org/packages/LinqKit.Microsoft.EntityFrameworkCore/

(for non-Core see https://www.nuget.org/packages/LinqKit.EntityFramework)

2
7/26/2016 1:00:05 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow