I have this :
var originalList = from x in db.Products
where x.Id == 2
orderby x.Ip
select x;
Now I have a resultset( for example 10 rows fetched). I want to update a field of all rows
for example x.name one by one. something like this :
foreach (//the fetched rows )
{
//x.name = "jack";
}
what is the simplest way?
Is that simple enough?
As a side note, I don’t believe your call toselectis actually adding anything.