Hour 7, “Understanding SharePoint 2010 Server Side Development,” looked at how to query and manipulate data in lists using the object model—the
SPListItem class. While this is good for a simple scenario, this is not the best way to query and edit data in lists. This section shows other better and recommended ways to do the same.
CAML (Collaborative Application Markup Language) is an XML-based query language used in conjunction with the
SPSiteDataQuery classes to perform data operations on SharePoint lists. While the
SPQuery class is used to retrieve data from a specific list, the
SPSiteDataQuery class is used to retrieve data from multiple lists ...