Data Browser - Viewing Site  Sector 23 Code Bank Logged in as:  Guest  


LINQ Troubles on convert to beta 2
Converted from the May CTP of Linq to beta 2 w/ VS 2008, and got serveral errors similar to:
'Could not find an implementation of the query pattern for source type...'

The solution was to make sure to add the following using directives to the top of the class:
using System.Linq <= For IQueryable, I believe this is from System.Core
using System.Data.Linq
using System.Linq.Expressions <= for Expression

(previously these were DLinq, Query and Expressions).

Also, make sure these references exist in the project, AS WELL as a reference to System.Core (does not need a using clause).
ALSO, remove any custom LINQ tags from the .csproj file; these resulted in the error
Invalid token 'void' ... on any partial methods.

Created By: amos 8/20/2007 4:50:56 PM
Updated: 10/5/2007 1:32:07 PM