LINQ in Action roller

SQL ERROR [42000] [Microsoft][SQL Native Client][SQL Server]Must declare the scalar variable "@p0".

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...
Published Wednesday, July 23, 2008 11:37 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication