Tuesday, May 15, 2012 6:59 AM
I have a requirement where i have to write a Linq to SharePoint query, which is equivalent to SPSiteDataQuery in sharepoint.. can i get some help in this...
Thanks, Neela Krishna
Tuesday, May 15, 2012 7:18 AM
SPSiteDataQuery is a separate method to query and access SharePoint data till now linq do not support it directly refer microsoft documentation
Tuesday, May 15, 2012 12:33 PMI like the solution mentioned by Ishaan, but it is as said: it translates Linq to CAML but doesn't convert it to entities. As an alternative, what you can do is this: since SPSiteDataQuery knows how to aggregate data across multiple sites, you need to get the same in Linq/SPMetal: http://msdn.microsoft.com/en-us/library/ff798478.aspx explains how.