Cannot find using System.Data.Linq

Viewed 44362

I'm using C#, EF 4 in asp.net 4 and VS 2010.

I'm trying to load namespace System.Data.Linq with this code using System.Data.Linq and I receive this error:

Error 2 The type or namespace name 'Linq' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)

Any idea what I'm doing wrong.

6 Answers

VS Installer

VS Installer

The above answers didn't work for me, my problem was that I needed to add LINQ to SQL tools in Visual Studio.

For VS 2022 and project on .NET 6.0 --- Project \ Referencies \ search \ MindBox.Data.Linq, everywhere "OK", install (based on personnel expirience)

Also, may be, need install -- Referencies \MS.System.Linq.Queryable (or MS.Queryable, not remember)

After all action LinqToSQL will be work in project.

Related