public void UpdateOrderDetailPallet(OrderDetailPallet orderDetailPallet) { using (var conn = new SqlConnection(conStr)) { conn.Open(); conn.Update <OrderDetailPallet>(orderDetailPallet); conn.Close(); } }
public long InsertOrderDetailPallet(OrderDetailPallet orderDetailPallet) { long identity; using (var conn = new SqlConnection(conStr)) { conn.Open(); identity = conn.Insert(orderDetailPallet); conn.Close(); } return(identity); }