can't use WithPath?

Posts   
 
    
mikeg22
User
Posts: 411
Joined: 30-Jun-2005
# Posted on: 12-Feb-2009 18:45:12   

I'm trying to include a prefetch path into my Linq query, and for some reason, the WithPath extension is not working...here is my code:


Dim pp As New PrefetchPath2(CType(EntityType.ReportMetadataEntity, Integer))
Dim q = (From rm In metaData.ReportMetadata _
              Order By rm.Name _
              Select rm).WithPath(pp)

The error I get is: 'WithPath' is not a member of 'System.Linq.IQueryable(Of BentekEnergy.ReportMetadata.EntityClasses.ReportMetadataEntity)'.

Am I not importing a namespace I need? The query works fine without the WithPath.

I am using version LinqSupportClasses version 2.6.0.0

Thanks, Mike

EDIT: I solved it. I wasn't importing SD.LLBLGen.Pro.LinqSupportClasses

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 12-Feb-2009 21:08:13   

Thanks for updating...simple_smile