According to this article https://visualstudiomagazine.com/articles/2019/07/01/updating-linq.aspx , I want to update collection set one field to NULL for all items
//Set all Entity_For = null
var relatedPlanToDos = DB.PlanToDos.Where(x => x.EntityFor != null && x.EntityFor.ID == entity.ID);
relatedPlanToDos.Select(c => { c.EntityFor = null ; return c; }).ToList();
This is the syntax Error I get :
A lambda expression with a statement body can not be converted to an expression tree
Any help would be appreciated