Hello stackoverflowers,
I'm trying to use LINQ to Sharepoint for the first time, but my where keyword isn't recognized : "Could not find an implementation of the query pattern for source type 'Microsoft.SharePoint.SPList'. 'Where' not found".
Here is the request :
using System.Linq;
[...]
var query = from item in listToQuery
where item.Site == _siteToQuery
&& item.ReportType == _recordTypeToQuery
&& item.Date == stringDate
select item;
Result = listToQuery.GetItems(query);
listToQuery and Result are two SPListItemCollection.
Why is where not recognized ?