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

Using ReflectionIT with Automapper #45

Open ambabaei opened 4 years ago

ambabaei commented 4 years ago

Dear Sir ,

what i would like to know is about using the ReflectionIT with Automapper . i have a service layer which convert the my domain models ( as IQueriable ) to my view models . when i start using automapper , i can not return IQueriable and needs to return my view models as an IEnumerable which is not accepted by pagelist.createAsync() method from ReflectionIT . what would the recommendation/best practise to use the ReflectionIT and Automapper ?

Best Regrads ,

Avie1 commented 4 years ago

I am facing the same problem @sonnemaf

sonnemaf commented 4 years ago

Please provide a working sample application that reproduces the problem?

Rafael18 commented 2 weeks ago

I had the same problem this year, the solution was applied in Automapper.

print