/// <summary> /// Deprecated Method for adding a new object to the Sponsors EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSponsors(Sponsor sponsor) { base.AddObject("Sponsors", sponsor); }
/// <summary> /// Create a new Sponsor object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="eventId">Initial value of the EventId property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="sponsorshipLevelId">Initial value of the SponsorshipLevelId property.</param> /// <param name="url">Initial value of the Url property.</param> /// <param name="image">Initial value of the Image property.</param> public static Sponsor CreateSponsor(global::System.Int32 id, global::System.Int32 eventId, global::System.String name, global::System.Int32 sponsorshipLevelId, global::System.String url, global::System.String image) { Sponsor sponsor = new Sponsor(); sponsor.Id = id; sponsor.EventId = eventId; sponsor.Name = name; sponsor.SponsorshipLevelId = sponsorshipLevelId; sponsor.Url = url; sponsor.Image = image; return sponsor; }