/// <summary> /// Deprecated Method for adding a new object to the DriverDiscounts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDriverDiscounts(DriverDiscount driverDiscount) { base.AddObject("DriverDiscounts", driverDiscount); }
/// <summary> /// Create a new DriverDiscount object. /// </summary> /// <param name="discountId">Initial value of the DiscountId property.</param> /// <param name="stateId">Initial value of the StateId property.</param> /// <param name="driverId">Initial value of the DriverId property.</param> /// <param name="appliedDiscountValue">Initial value of the AppliedDiscountValue property.</param> public static DriverDiscount CreateDriverDiscount(global::System.Int32 discountId, global::System.Int32 stateId, global::System.Int32 driverId, global::System.Decimal appliedDiscountValue) { DriverDiscount driverDiscount = new DriverDiscount(); driverDiscount.DiscountId = discountId; driverDiscount.StateId = stateId; driverDiscount.DriverId = driverId; driverDiscount.AppliedDiscountValue = appliedDiscountValue; return driverDiscount; }