How can i after delete record insert it to another table

hello ,

How can i after delete record insert it to another table , this example for training

Thank’s

You can put code inserting to other tables to delete() method.

thank’s i solve it

static void Insert2orders2 (orders _orders)

{

Orders2 orders2;

orders2.OrderID = _orders.OrderID;

orders2.OrderDate = _orders.OrderDate;

orders2.Total =_orders.Total;

}

and in delete method

Orders::insetToOrders2(this);