How to convert T array (IEnumerable <T>) to IQueryable <T> for processing using LINQ?

I am working on an application that uses a WCF server (using the new beta version of Mindscape LightSpeed ​​ORM) and use this service with an ASP.NET MVC2 client. My objects are displayed on the client as an array Tor IEnumerable<T>. I want to do cool things with data after it arrives, but LINQ syntax is required IQueryable<T>.

I know that there is a way to convert from IEnumerable<T>to IQueryable<T>, but so far I have not been able to find it. Can anyone help?

Thanks Dave

+3
source share
2 answers

, , Queryable.AsQueryable() - , IQueryable<T> LINQ? IEnumerable<T> IQueryable<T> IQueryable<T>.

LINQ to Objects IEnumerable<T>. , , , .

, , WCF (, , , WCF), IQueryable<T>. Edulinq IQueryable<T>. - IQueryable<T>, - WCF.

+6

: AsQueryable()

0

Source: https://habr.com/ru/post/1796075/


All Articles