/// <summary> /// Deprecated Method for adding a new object to the Discounts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDiscounts(Discount discount) { base.AddObject("Discounts", discount); }
/// <summary> /// Create a new Discount object. /// </summary> /// <param name="discountID">Initial value of the DiscountID property.</param> /// <param name="discountDescription">Initial value of the DiscountDescription property.</param> /// <param name="discountExpiration">Initial value of the DiscountExpiration property.</param> /// <param name="discountRules">Initial value of the DiscountRules property.</param> /// <param name="discountAmount">Initial value of the DiscountAmount property.</param> public static Discount CreateDiscount(global::System.Int16 discountID, global::System.String discountDescription, global::System.DateTime discountExpiration, global::System.String discountRules, global::System.Decimal discountAmount) { Discount discount = new Discount(); discount.DiscountID = discountID; discount.DiscountDescription = discountDescription; discount.DiscountExpiration = discountExpiration; discount.DiscountRules = discountRules; discount.DiscountAmount = discountAmount; return discount; }