dtruncate table in context ef code example
Example: how to 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");