Ejemplo n.º 1
0
 /// <summary>
 /// Create a new Discount object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="qtyRequired">Initial value of the QtyRequired property.</param>
 /// <param name="discountedPrice">Initial value of the DiscountedPrice property.</param>
 /// <param name="itemId">Initial value of the ItemId property.</param>
 public static Discount CreateDiscount(global::System.Int32 id, global::System.Int32 qtyRequired, global::System.Double discountedPrice, global::System.Int32 itemId)
 {
     Discount discount = new Discount();
     discount.Id = id;
     discount.QtyRequired = qtyRequired;
     discount.DiscountedPrice = discountedPrice;
     discount.ItemId = itemId;
     return discount;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Discounts EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDiscounts(Discount discount)
 {
     base.AddObject("Discounts", discount);
 }