/// <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="isActive">Initial value of the IsActive property.</param> public static Sponsor CreateSponsor(global::System.Int32 id, global::System.Boolean isActive) { Sponsor sponsor = new Sponsor(); sponsor.Id = id; sponsor.IsActive = isActive; return sponsor; }