How I can quickly remove all rows in table using Entity Framework?
I am currently using:
var rows = from o in dataDb.Table select o; forea
For those that are googling this and ended up here like me, this is how you currently do it in EF5 and EF6:
context.Database.ExecuteSqlCommand("TRUNCATE TABLE [TableName]");
Assuming context is a System.Data.Entity.DbContext
System.Data.Entity.DbContext