Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Asp Net Core CountAsync() on generic Iqueryable

$
0
0

Hello,

I keep getting this exception on Asp Net Core 1.1.0:

{System.InvalidOperationException: The provider for the source IQueryable doesn't implement IAsyncQueryProvider. Only providers that implement IEntityQueryProvider can be used for Entity Framework asynchronous operations.
at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteAsync[TSource,TResult](MethodInfo operatorMethodInfo, IQueryable`1 source, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.CountAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken)
at CoreWebTemplate.PaginatedList`1.<CreateAsync>d__13.MoveNext() in C:\Users\littl\Source\Workspaces\Workspace\Jumanji\CoreWebTemplate\src\CoreWebTemplate\PaginatedList.cs:line 42}

it occurs with the CreateAsync await tasks that im using in PaginatedList.cs.  ive mixed in some task.delays but frankly im at a loss

Code below. Thank you

http://pastebin.com/JHXbrnj6


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>