truncate table entity framework corec# 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");