/// <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="rowVersion">Initial value of the RowVersion property.</param> /// <param name="firstName">Initial value of the FirstName property.</param> /// <param name="lastName">Initial value of the LastName property.</param> /// <param name="preferredContactMethod">Initial value of the PreferredContactMethod property.</param> /// <param name="email">Initial value of the Email property.</param> /// <param name="phone">Initial value of the Phone property.</param> /// <param name="street">Initial value of the Street property.</param> /// <param name="city">Initial value of the City property.</param> /// <param name="state">Initial value of the State property.</param> /// <param name="zip">Initial value of the Zip property.</param> /// <param name="createdTime">Initial value of the CreatedTime property.</param> /// <param name="updatedTime">Initial value of the UpdatedTime property.</param> /// <param name="updatedBy">Initial value of the UpdatedBy property.</param> public static Sponsor CreateSponsor(global::System.Int32 id, global::System.Byte[] rowVersion, global::System.String firstName, global::System.String lastName, global::System.String preferredContactMethod, global::System.String email, global::System.String phone, global::System.String street, global::System.String city, global::System.String state, global::System.String zip, global::System.DateTime createdTime, global::System.DateTime updatedTime, global::System.String updatedBy) { Sponsor sponsor = new Sponsor(); sponsor.Id = id; sponsor.RowVersion = rowVersion; sponsor.FirstName = firstName; sponsor.LastName = lastName; sponsor.PreferredContactMethod = preferredContactMethod; sponsor.Email = email; sponsor.Phone = phone; sponsor.Street = street; sponsor.City = city; sponsor.State = state; sponsor.Zip = zip; sponsor.CreatedTime = createdTime; sponsor.UpdatedTime = updatedTime; sponsor.UpdatedBy = updatedBy; return sponsor; }