adspace


how do you truncate a table using entity data model?

Answer Posted / Rohit Raj

Unfortunately, the Entity Data Model (EDM) does not provide a direct method to truncate a table. However, you can achieve this by executing the SQL TRUNCATE TABLE command using the Database.ExecuteSqlCommand() method in EF.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Possible ways to prevent xss attacks on mvc application?

1096


Explain the request flow in asp.net mvc framework?

1107


How to use multiple submit buttons in asp.net mvc?

1320