示例#1
0
 public void UpdateOrderDetailPallet(OrderDetailPallet orderDetailPallet)
 {
     using (var conn = new SqlConnection(conStr))
     {
         conn.Open();
         conn.Update <OrderDetailPallet>(orderDetailPallet);
         conn.Close();
     }
 }
示例#2
0
        public long InsertOrderDetailPallet(OrderDetailPallet orderDetailPallet)
        {
            long identity;

            using (var conn = new SqlConnection(conStr))
            {
                conn.Open();
                identity = conn.Insert(orderDetailPallet);
                conn.Close();
            }
            return(identity);
        }