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