Datacontext context = new Datacontext(); tablename tb=new tablename(); string DeleteQuery="delete from table A"; context.ExecuteCommand<tb>(DeleteQuery); DeleteQuery=string.empty; string InsertQuery="Insert into table B(a,b,c,d)Select table from C Union All Select Table from D"; context.ExecuteCommand<tb>(InsertQuery); InsertQuery=string.empty;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)