I want to delete content of all tables (all entities) using Entity Framework 4+. How can this be done?
This works for me... EF v3.1.5
context.ModelName.RemoveRange(context.ModelName.ToList()); context.SaveChanges();
(In .NetCore) You can use RemoveRange on the table with the table itself as Parameter.
Tablename.RemoveRange(Tablename);