Where is IQueryable in the .NET Compact Framework?

I started developing a repository using LINQ to SQL for SQL CE in a Windows project. It works great. However, when I went for porting the code to .NET CF for a Windows Mobile application, IQueryable does not seem to exist.

What is the best way to do this work through mobile and desktop?

+6
c # linq compact-framework
source share
2 answers

It just doesn't exist - especially because none of them are Expression (although you can re-add snippets of this if you need to).

You just have to limit yourself to the โ€œregularโ€ code for accessing data (LINQ-to-SQL, etc.) / services (ADO.NET Data Services, etc.). Of course, when you have data from any source, you can still use IEnumerable<T> , so there are many local options for querying data.

+3
source share

In System.Linq

Edit:

Taken - I did not see him looking at the Compact framework. The documentation does not say anything specific about this for the compact structure (which is probably not included, but it is not final). I will leave it now to help others avoid my mistake.

0
source share

All Articles