delete all in entity framework code example
Example: Truncate the table using entity framework
Here, Menu_category is the table name
DbContectClass.Database.ExecuteSqlCommand("Truncate table Menu_Category");
Here, Menu_category is the table name
DbContectClass.Database.ExecuteSqlCommand("Truncate table Menu_Category");