/// <summary> /// Deprecated Method for adding a new object to the OfferAvailabilities EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOfferAvailabilities(OfferAvailability offerAvailability) { base.AddObject("OfferAvailabilities", offerAvailability); }
/// <summary> /// Create a new OfferAvailability object. /// </summary> /// <param name="guid">Initial value of the Guid 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> public static OfferAvailability CreateOfferAvailability(global::System.Guid guid, 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) { OfferAvailability offerAvailability = new OfferAvailability(); offerAvailability.Guid = guid; offerAvailability.OfferGuid = offerGuid; offerAvailability.BeginUTC = beginUTC; offerAvailability.EndUTC = endUTC; offerAvailability.RequiresOfferCode = requiresOfferCode; offerAvailability.OfferCode = offerCode; offerAvailability.MaxAllowedPerCustomer = maxAllowedPerCustomer; offerAvailability.Created = created; offerAvailability.CreatedBy = createdBy; offerAvailability.CreatedFromIP = createdFromIP; offerAvailability.IsDeleted = isDeleted; return offerAvailability; }