/// <summary>
 /// Deprecated Method for adding a new object to the DiscountPerStates EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDiscountPerStates(DiscountPerState discountPerState)
 {
     base.AddObject("DiscountPerStates", discountPerState);
 }
 /// <summary>
 /// Create a new DiscountPerState object.
 /// </summary>
 /// <param name="discountId">Initial value of the DiscountId property.</param>
 /// <param name="stateId">Initial value of the StateId property.</param>
 /// <param name="amount">Initial value of the Amount property.</param>
 public static DiscountPerState CreateDiscountPerState(global::System.Int32 discountId, global::System.Int32 stateId, global::System.Decimal amount)
 {
     DiscountPerState discountPerState = new DiscountPerState();
     discountPerState.DiscountId = discountId;
     discountPerState.StateId = stateId;
     discountPerState.Amount = amount;
     return discountPerState;
 }