0
votes

In MOSS 2007 we use a CAML query to query the SharePoint list and in SharePoint 2010 I found the newly introduced LINQ to SharePoint (where using SPMetal utility we generate a data context class) which works fine for a SharePoint list but how do I query a form library were most of the fields are promoted to it from the Infopath form?

1
Not sure I understand what the problem is. Don't the promoted fields act like normal SharePoint columns? I havent tried running SPMetal on a form library but I assume it should work the same as a regular list. Does it not? - Tundey
Tundey, Yes using Linq to Sharepoint i am not able to query Form Library. The class generated by SPMetal utility does not create an object which can be queried by Linq. - Nikhil Vaghela

1 Answers