var results = context.Customer.Where(c => c.CustomerId == customerId).AsQueryable();
foreach(Customer cust in results)
{
cust.isDeleted = true;
}
context.UpdateRange(results);
context.SaveChanges();
** Using the loop seems inefficient. Can the fetch and update be done in a single statement?