Analyzing Web Parts with SharePoint Developer Dashboard
We are going to use another alternative to retrieve information for the user assigned to each item. We can avoid running many complex asynchronous executions to retrieve the user for each item in the
ProjectsList2010 list. Follow these steps to retrieve the user related to each item in the
ProjectsList2010 list by using a LINQ to objects query to perform a join on two lists.
- Stay in Visual Studio as a system administrator user.
MainPage.xaml.csand replace the code in the
ShowProjectsmethod with the following lines. This time, it will run two asynchronous queries to retrieve all the items for the
UserInformationListlists. Then, it will perform a LINQ to objects query ...