remove where entitiy framework code example
Example: remove where entitiy framework
db.People.RemoveRange(db.People.Where(x => x.State == "CA"));
db.SaveChanges();
db.People.RemoveRange(db.People.Where(x => x.State == "CA"));
db.SaveChanges();