6
Reply

How we can truncate a table Using LINQ?

Vinay  Arora

Vinay Arora

12y
7.6k
0
Reply
    EmpDataContext empobj= new EmpDataContext (); empobj.ExecuteCommand("TRUNCATE TABLE TABLENAME");
    LinqDataContext dc=new LinqDataContext(); dc.ExecuteCommand("TRUNCATE TABLE myTable");
    EmpDataContext empobj= new EmpDataContext (); empobj.ExecuteCommand("TRUNCATE TABLE TABLENAME");
    EmpDataContext empobj= new EmpDataContext (); empobj.ExecuteCommand("TRUNCATE TABLE TABLENAME");
    Hi, This can be done using LINQ to SQL:SomeTableDataContext stdc = new SomeTableDataContext ();stdc .ExecuteCommand("TRUNCATE TABLE FULLPRICELIST");
    Hi, This can be done using LINQ to SQL:SomeTableDataContext stdc = new SomeTableDataContext ();stdc .ExecuteCommand("TRUNCATE TABLE FULLPRICELIST");