Exemplo n.º 1
0
 public void Save(string orderId, OrderDetail orderDetail)
 {
     var sql = @"insert into OrderDetail(OrderId, Product, Amount) values(@orderId, @Product, @Amount)";
     _Database.ExecuteNonQuery(sql, new {orderId, orderDetail.Product, orderDetail.Amount});
 }
Exemplo n.º 2
0
        public void Save(string orderId, OrderDetail orderDetail)
        {
            var sql = @"insert into OrderDetail(OrderId, Product, Amount) values(@orderId, @Product, @Amount)";

            _Database.ExecuteNonQuery(sql, new { orderId, orderDetail.Product, orderDetail.Amount });
        }