/// <summary>
 /// Create a new Discount object.
 /// </summary>
 /// <param name="discountGuid">Initial value of the DiscountGuid property.</param>
 /// <param name="discountCode">Initial value of the DiscountCode property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="siteGuid">Initial value of the SiteGuid property.</param>
 /// <param name="moduleGuid">Initial value of the ModuleGuid property.</param>
 /// <param name="storeGuid">Initial value of the StoreGuid property.</param>
 /// <param name="offerGuid">Initial value of the OfferGuid property.</param>
 /// <param name="validityStartDate">Initial value of the ValidityStartDate property.</param>
 /// <param name="useCount">Initial value of the UseCount property.</param>
 /// <param name="maxCount">Initial value of the MaxCount property.</param>
 /// <param name="minOrderAmount">Initial value of the MinOrderAmount property.</param>
 /// <param name="absoluteDiscount">Initial value of the AbsoluteDiscount property.</param>
 /// <param name="percentageDiscount">Initial value of the PercentageDiscount property.</param>
 /// <param name="createdBy">Initial value of the CreatedBy property.</param>
 /// <param name="createdUtc">Initial value of the CreatedUtc property.</param>
 /// <param name="lastModBy">Initial value of the LastModBy property.</param>
 /// <param name="lastModUtc">Initial value of the LastModUtc property.</param>
 public static Discount CreateDiscount(global::System.Guid discountGuid, global::System.String discountCode, global::System.String description, global::System.Guid siteGuid, global::System.Guid moduleGuid, global::System.Guid storeGuid, global::System.Guid offerGuid, global::System.DateTime validityStartDate, global::System.Int32 useCount, global::System.Int32 maxCount, global::System.Decimal minOrderAmount, global::System.Decimal absoluteDiscount, global::System.Decimal percentageDiscount, global::System.Guid createdBy, global::System.DateTime createdUtc, global::System.Guid lastModBy, global::System.DateTime lastModUtc)
 {
     Discount discount = new Discount();
     discount.DiscountGuid = discountGuid;
     discount.DiscountCode = discountCode;
     discount.Description = description;
     discount.SiteGuid = siteGuid;
     discount.ModuleGuid = moduleGuid;
     discount.StoreGuid = storeGuid;
     discount.OfferGuid = offerGuid;
     discount.ValidityStartDate = validityStartDate;
     discount.UseCount = useCount;
     discount.MaxCount = maxCount;
     discount.MinOrderAmount = minOrderAmount;
     discount.AbsoluteDiscount = absoluteDiscount;
     discount.PercentageDiscount = percentageDiscount;
     discount.CreatedBy = createdBy;
     discount.CreatedUtc = createdUtc;
     discount.LastModBy = lastModBy;
     discount.LastModUtc = lastModUtc;
     return discount;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Discounts EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDiscounts(Discount discount)
 {
     base.AddObject("Discounts", discount);
 }