sonnemaf / ReflectionIT.Mvc.Paging

ASP.NET Core 3.0 Paging (including filtering and sorting) solution using Entity Framework Core 3.0 and IEnumerable<T>
MIT License
79 stars 37 forks source link

`IQueryable` doesn't implement `IAsyncQueryProvider` in CreateAsync method #64

Closed Mohammad-Abbasi2559 closed 1 year ago

Mohammad-Abbasi2559 commented 1 year ago

When Convert Enumerable to AsQueryable I get error When i get data from data base and i use AsQueryable to use it in CreateAsync method from PagingList i received internal server error

To Reproduce Steps to reproduce the behavior:

  1. Call data from data base
  2. Use AsQueryable
  3. Send it to CreateAsync method
  4. See error

Expected behavior I call data with unit of work pattern after get data convert to Queryable

Screenshots Untitled8

Mohammad-Abbasi2559 commented 1 year ago

I send example codes to this community : IQueryable doesn't implement IAsyncQueryProvider when convert Enumerable to IQueryable This issue is answered in above link