我有一个SPQuery,我想循环两次。首先是初始循环,获取每一行的所有值
foreach (SPListItem timelineItem in timelineCol)
{
在这个foreach中我想做一个timelineCol的第二个foret,带有一个WHERE语句,类似于
foreach (SPListItem timelineItemException in timelineCol.Where(n => n["workflowExcpetions"] = an int I have already retrieved from the item)
本质上我从初始timelineItem获取一个int值,如果它存在,我必须再次遍历所有行,寻找包含该值的任何其他行,但我不想遍历所有他们,只是符合我标准的那些。