LINQ query instead of Foreach

the reason why the booelan is mandatory needed for the where lambda is explained here:

Options for updating a data column value are discussed here: