/// <summary>
 /// Create a new OrderDetail object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="orderId">Initial value of the OrderId property.</param>
 /// <param name="productId">Initial value of the ProductId property.</param>
 /// <param name="quantity">Initial value of the Quantity property.</param>
 /// <param name="discount">Initial value of the Discount property.</param>
 public static OrderDetail CreateOrderDetail(global::System.Int64 id, global::System.Int64 orderId, global::System.Int64 productId, global::System.Int32 quantity, global::System.Double discount)
 {
     OrderDetail orderDetail = new OrderDetail();
     orderDetail.Id = id;
     orderDetail.OrderId = orderId;
     orderDetail.ProductId = productId;
     orderDetail.Quantity = quantity;
     orderDetail.Discount = discount;
     return orderDetail;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the OrderDetails EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOrderDetails(OrderDetail orderDetail)
 {
     base.AddObject("OrderDetails", orderDetail);
 }