I'm new to Linq and I'm just trying to setup a class that represents a simple database table and then query it. My code looks like this: Code Snippet OdbcConnection conn = new OdbcConnection(connInfo.ConnectionString); DataContext db = new DataContext(conn); Table table = db.GetTable(); IQueryable query = from header in table where header.FieldName == "Approval" select header; foreach (HeaderFieldLinq header in query) { Console.WriteLine(header.FieldName + "\n"); } When I get to the foreach (when
Read More...