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