I'm currently learning LINQ to SQL where I am selecting a data from the LINQ table object through datacontext.
I have created a datacontext by adding linqtosql class and dragged the HH_table.
The problem I'm facing is the LINQ namespace is not recognized by the program.
using (var connection = new DataClasses1DataContext())
{
var g = from a in HH_table select a.date;
}
In the above code i'm getting a error that:
cannot resolve symbol 'select'.
I have added all the references with respect to LINQ
System.Data.linq
System.core,
System.xml.linq
System.Linq;
but none of the references solve the above problem.
Am I missing something?