Language Integrated Query, LINQ, is a .NET Framework component used for native data querying

learn more… | top users | synonyms

1
vote
1answer
1k views

how to linq query spfield to spuser

Here is my code. SPUser approver = mySite.EnsureUser(approverId); var selectedItems = listItems.Cast<SPListItem>().Where(p => p.Fields["WF_Approver"] == approver); my list items field ...
3
votes
3answers
7k views

Using LINQ to select SPListItems and load a SPGridView

Is there a way to run this LINQ statement var items = from SPListItem li in listSettings.Items where li["WebID"].ToString() == SPContext.Current.Web.ID.ToString() orderby ...
2
votes
2answers
672 views

Editing web.config file from a feature using linq

I have custom web.config functionality that uses Linq to merge elements into a web.config based on a template file. I would like to use this in a feature so I can get it to merge all web.configs in a ...