mardi 13 mars 2018

IQueryable<> is loosing its initial type after Linq Skip/Take

Can someone explain how to avoid the following situation?

I have a variable called data that is an IQueryable<>. As you can see before calling Skip/Take on it, the runtime knows of its exact type (IQueryable<...Module>).

enter image description here

After doing Skip/Take the variable data becomes an IQueryable< object>.

enter image description here

I want it to retain the original type it had before executing the Skip/Take. How can I do that?

PS1: The collection has been returned by a method that returns an IQueryable< object>





Aucun commentaire:

Enregistrer un commentaire