/// <summary> /// Create a new bvc_Discount object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="startDate">Initial value of the StartDate property.</param> /// <param name="endDate">Initial value of the EndDate property.</param> /// <param name="applyTo">Initial value of the ApplyTo property.</param> /// <param name="amountType">Initial value of the AmountType property.</param> /// <param name="amount">Initial value of the Amount property.</param> /// <param name="qualifyQty">Initial value of the QualifyQty property.</param> /// <param name="qualifyTotal">Initial value of the QualifyTotal property.</param> /// <param name="requiresCoupon">Initial value of the RequiresCoupon property.</param> /// <param name="couponCode">Initial value of the CouponCode property.</param> /// <param name="maxUsesPerCustomer">Initial value of the MaxUsesPerCustomer property.</param> /// <param name="exclusiveOffer">Initial value of the ExclusiveOffer property.</param> /// <param name="shipMethodID">Initial value of the ShipMethodID property.</param> public static bvc_Discount Createbvc_Discount(global::System.Int32 id, global::System.DateTime startDate, global::System.DateTime endDate, global::System.Int32 applyTo, global::System.Int32 amountType, global::System.Double amount, global::System.Int32 qualifyQty, global::System.Double qualifyTotal, global::System.Int32 requiresCoupon, global::System.String couponCode, global::System.Int32 maxUsesPerCustomer, global::System.Int32 exclusiveOffer, global::System.Int32 shipMethodID) { bvc_Discount bvc_Discount = new bvc_Discount(); bvc_Discount.ID = id; bvc_Discount.StartDate = startDate; bvc_Discount.EndDate = endDate; bvc_Discount.ApplyTo = applyTo; bvc_Discount.AmountType = amountType; bvc_Discount.Amount = amount; bvc_Discount.QualifyQty = qualifyQty; bvc_Discount.QualifyTotal = qualifyTotal; bvc_Discount.RequiresCoupon = requiresCoupon; bvc_Discount.CouponCode = couponCode; bvc_Discount.MaxUsesPerCustomer = maxUsesPerCustomer; bvc_Discount.ExclusiveOffer = exclusiveOffer; bvc_Discount.ShipMethodID = shipMethodID; return bvc_Discount; }
/// <summary> /// Deprecated Method for adding a new object to the bvc_Discount EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTobvc_Discount(bvc_Discount bvc_Discount) { base.AddObject("bvc_Discount", bvc_Discount); }