Just wondering how developers are working around the issue that LINQ doesn't have an update command.
I've been having it to do it in 2 commands:
1) select the items that meet the criteria
2) do a foreach on the items selected and set that criteria to the specified value.
for example,
thanks for the help
I've been having it to do it in 2 commands:
1) select the items that meet the criteria
2) do a foreach on the items selected and set that criteria to the specified value.
for example,
Code:
IEnumerable<IDropDownItem> LdItems;
LdItems =
from ddList in loCheckCriteria.LobjList
select ddList;
foreach (IDropDownItem LdItem in LdItems)
{
LdItem.IsSelected = true;
}
thanks for the help