/// <summary>
        /// Create a new CustomerDiscount object.
        /// </summary>
        /// <param name="customerId">Initial value of the CustomerId property.</param>
        /// <param name="purchaseDiscount">Initial value of the PurchaseDiscount property.</param>
        public static CustomerDiscount CreateCustomerDiscount(global::System.Int32 customerId, global::System.Int32 purchaseDiscount)
        {
            CustomerDiscount customerDiscount = new CustomerDiscount();

            customerDiscount.CustomerId = customerId;

            customerDiscount.PurchaseDiscount = purchaseDiscount;

            return(customerDiscount);
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the CustomerDiscounts EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCustomerDiscounts(CustomerDiscount customerDiscount)
 {
     base.AddObject("CustomerDiscounts", customerDiscount);
 }