Loading...

Thursday, May 26, 2011

Beauty Of Linq in Sharepoint

Linq Query to Get the ListItems for List in  One Step
Namespace:System.Linq, System.Collections.Generic    

IEnumerable results = lstMembershipList.Items.Cast().Where(item => item["EntityType"].ToString().Trim() == "Project" && item["Association"].ToString().Trim().ToUpper() == associationType

No comments: