I'm new to EF i want to execute this sql command using only EF and linq :
I looked on internet but most of the questions are related to old versions of EF
Update Foo set foo.Name ="Modified"
where Foo.id = 6
Is this possible ?
This is as simple as following:
var foos = Foo.Where(f => f.id == 6).ToList();
foos.ForEach(f => f.Name = "Modified");
context.SaveChanges();