public void Save(OrderInfo order) { if (order.id > 0) _orderDao.Update(order); else _orderDao.Insert(order); }
partial void DeleteOrderInfo(OrderInfo instance);
partial void UpdateOrderInfo(OrderInfo instance);
partial void InsertOrderInfo(OrderInfo instance);
private void detach_OrderInfo(OrderInfo entity) { this.SendPropertyChanging(); entity.Product = null; }
private void attach_OrderInfo(OrderInfo entity) { this.SendPropertyChanging(); entity.Product = this; }
public ActionResult Buy(OrderInfo order) { OrderService.GetInstance().Save(order); return Redirect("/product/success"); }