Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is System.Linq in .NET 4.0?

Tags:

.net

linq

I migrated an asp.net app to 4.0. Now I am getting an error "The type or namespace name 'IQueryable' could not be found". The reference to System.Linq is invalid and I can't find it in the reference list. Where did System.Linq go?

like image 354
Tony_Henrich Avatar asked May 23 '10 21:05

Tony_Henrich


People also ask

Where is System LINQ located?

The System. Linq namespace is in the System. Core assembly (in System. Core.

What is System LINQ in C#?

Language-Integrated Query (LINQ) is the name for a set of technologies based on the integration of query capabilities directly into the C# language. Traditionally, queries against data are expressed as simple strings without type checking at compile time or IntelliSense support.

Does .NET core have LINQ?

NET Core LINQ stands for Language Integrated Query. Language Integrated Query is one structured query that is used to retrieve data from the database and other different sources and formats. LINQ tutorials will assist you to find out the LINQ language using topics that go from basic to advanced.

What is difference between System LINQ and System data LINQ?

Linq is generic-level implementation which relies on IEnumerable whereas System. Data. Linq is provider-specific (LINQ to SQL) which relies on IQueryable.


1 Answers

Make sure you are referencing System.Core.dll in your project. The IQueryable<T> type is defined in that assembly (just as it was in .NET 3.5).

like image 75
Andrew Hare Avatar answered Oct 24 '22 09:10

Andrew Hare