The question is easier to understand, if you immediately look at the code
static int Reset() { using (ApplicationContext db = new ApplicationContext()) { return db.Database.ExecuteSqlCommand("UPDATE Employees SET StatusCode=0 WHERE StatusCode>0"); } } Is it possible to create an update request using EF tools (one request, and not first read into memory, change and call db.SaveChanges() - I think this is extremely inefficient), or use ExecuteSqlCommand() in such cases - the only solution?