Interviews6 answers
How we can truncate a table Using LINQ?
6 Answers
LinqDataContext dc=new LinqDataContext();
dc.ExecuteCommand("TRUNCATE TABLE myTable");
Munesh SharmaPosted Jun 16, 2015, 7:56 AM EDT
EmpDataContext empobj= new EmpDataContext ();
empobj.ExecuteCommand("TRUNCATE TABLE TABLENAME");
Bhabani PrasadPosted May 21, 2014, 4:21 AM EDT
EmpDataContext empobj= new EmpDataContext ();
empobj.ExecuteCommand("TRUNCATE TABLE TABLENAME");
Bhabani PrasadPosted May 21, 2014, 4:21 AM EDT
EmpDataContext empobj= new EmpDataContext ();
empobj.ExecuteCommand("TRUNCATE TABLE TABLENAME");
Bhabani PrasadPosted May 21, 2014, 4:21 AM EDT
Hi, This can be done using LINQ to SQL:
SomeTableDataContext stdc = new SomeTableDataContext ();
stdc .ExecuteCommand("TRUNCATE TABLE FULLPRICELIST");
Mayil VakananPosted Oct 28, 2013, 11:40 PM EDT
Hi, This can be done using LINQ to SQL:
SomeTableDataContext stdc = new SomeTableDataContext ();
stdc .ExecuteCommand("TRUNCATE TABLE FULLPRICELIST");
Mayil VakananPosted Oct 28, 2013, 11:40 PM EDT


