SPQuery repository examples in SPG 2010

Aug 25, 2010 at 1:50 AM

BaseListItemRepository, ListItermRepository and related classes were very useful in 2007 SPG. I see that there is a new metadata mapper class, but could not find any SPQuery-based repositories. (There is one for Linq to SharePoint but not for SPQuery).

Aug 31, 2010 at 7:28 PM

Hi Stan,

Sorry for the delayed response.

For the reference implementations we implemented we found in general that we could just use LINQ which does the mapping for us.  There will still be cases (like SPSiteDataQuery, and querying external lists) where we need to do this mapping at the list item level though.  There shouldn't be any difference in approach here from the way the 2007 SPG guidance approached it.