how do you truncate a table using entity data model?



how do you truncate a table using entity data model?..

Answer / 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

More Dot Net Framework Interview Questions

Will the name change be reflected in any of the existing .net framework 2.0 apis, assemblies, or namespaces?

1 Answers  


How does .net framework works?

1 Answers  


Explain tempdata in mvc?

1 Answers  


How can you return string result from Action in ASP.Net MVC?

1 Answers  


What are the types of assemblies and where can u store them and how ?

11 Answers   Accenture, BirlaSoft, IBM,


What is Peek method in Tempdata in ASP.Net MVC?

1 Answers  


What is the benefit of entity framework?

1 Answers  


Explain the advantages of dependency injection (di) in asp.net mvc?

1 Answers  


Describe the roles of clr in .net framework.?

1 Answers  


Define .NET architecture ?

3 Answers   TCS,


What is Differnce between html.action and ajax.action?

1 Answers   HCL,


what is .NET ?

18 Answers   TCS,


Categories