Esempio n. 1
0
 public void UpdateOrder(Order currentOrder, Order_Detail[] details, bool commit)
 {
     PersistSvr<Order>.Update(currentOrder, commit);
     foreach (var od in details)
     {
         PersistSvr<Order_Detail>.Update(od, commit);
     }
 }
Esempio n. 2
0
 public void CreateOrder(Order order, Order_Detail[] details)
 {
     PersistSvr<Order>.Insert(order, true);
     foreach (var od in details)
     {
         od.OrderID = order.OrderID;
         PersistSvr<Order_Detail>.Insert(od, true);
     }
 }