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 |
Will the name change be reflected in any of the existing .net framework 2.0 apis, assemblies, or namespaces?
How does .net framework works?
Explain tempdata in mvc?
How can you return string result from Action in ASP.Net MVC?
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?
What is the benefit of entity framework?
Explain the advantages of dependency injection (di) in asp.net mvc?
Describe the roles of clr in .net framework.?
Define .NET architecture ?
What is Differnce between html.action and ajax.action?
what is .NET ?