/// <summary> /// Create a new Sponsorship object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> /// <param name="client_Sponsorship">Initial value of the Client_Sponsorship property.</param> /// <param name="sponsor_Sponsorship">Initial value of the Sponsor_Sponsorship property.</param> public static Sponsorship CreateSponsorship(global::System.Int32 id, global::System.Byte[] rowVersion, global::System.Int32 client_Sponsorship, global::System.Int32 sponsor_Sponsorship) { Sponsorship sponsorship = new Sponsorship(); sponsorship.Id = id; sponsorship.RowVersion = rowVersion; sponsorship.Client_Sponsorship = client_Sponsorship; sponsorship.Sponsor_Sponsorship = sponsor_Sponsorship; return sponsorship; }
/// <summary> /// Deprecated Method for adding a new object to the Sponsorships EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSponsorships(Sponsorship sponsorship) { base.AddObject("Sponsorships", sponsorship); }