/// <summary> /// Deprecated Method for adding a new object to the OfferAvailabilityHistories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOfferAvailabilityHistories(OfferAvailabilityHistory offerAvailabilityHistory) { base.AddObject("OfferAvailabilityHistories", offerAvailabilityHistory); }
/// <summary> /// Create a new OfferAvailabilityHistory object. /// </summary> /// <param name="guid">Initial value of the Guid property.</param> /// <param name="availabilityGuid">Initial value of the AvailabilityGuid property.</param> /// <param name="offerGuid">Initial value of the OfferGuid property.</param> /// <param name="beginUTC">Initial value of the BeginUTC property.</param> /// <param name="endUTC">Initial value of the EndUTC property.</param> /// <param name="requiresOfferCode">Initial value of the RequiresOfferCode property.</param> /// <param name="offerCode">Initial value of the OfferCode property.</param> /// <param name="maxAllowedPerCustomer">Initial value of the MaxAllowedPerCustomer property.</param> /// <param name="created">Initial value of the Created property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="createdFromIP">Initial value of the CreatedFromIP property.</param> /// <param name="isDeleted">Initial value of the IsDeleted property.</param> /// <param name="logTime">Initial value of the LogTime property.</param> public static OfferAvailabilityHistory CreateOfferAvailabilityHistory(global::System.Guid guid, global::System.Guid availabilityGuid, global::System.Guid offerGuid, global::System.DateTime beginUTC, global::System.DateTime endUTC, global::System.Boolean requiresOfferCode, global::System.String offerCode, global::System.Int32 maxAllowedPerCustomer, global::System.DateTime created, global::System.Guid createdBy, global::System.String createdFromIP, global::System.Boolean isDeleted, global::System.DateTime logTime) { OfferAvailabilityHistory offerAvailabilityHistory = new OfferAvailabilityHistory(); offerAvailabilityHistory.Guid = guid; offerAvailabilityHistory.AvailabilityGuid = availabilityGuid; offerAvailabilityHistory.OfferGuid = offerGuid; offerAvailabilityHistory.BeginUTC = beginUTC; offerAvailabilityHistory.EndUTC = endUTC; offerAvailabilityHistory.RequiresOfferCode = requiresOfferCode; offerAvailabilityHistory.OfferCode = offerCode; offerAvailabilityHistory.MaxAllowedPerCustomer = maxAllowedPerCustomer; offerAvailabilityHistory.Created = created; offerAvailabilityHistory.CreatedBy = createdBy; offerAvailabilityHistory.CreatedFromIP = createdFromIP; offerAvailabilityHistory.IsDeleted = isDeleted; offerAvailabilityHistory.LogTime = logTime; return offerAvailabilityHistory; }