예제 #1
0
 /// <summary>
 /// Create a new Sponsor1 object.
 /// </summary>
 /// <param name="id">Initial value of the Id 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>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 public static Sponsor1 CreateSponsor1(global::System.Int32 id, 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, global::System.Byte[] rowVersion)
 {
     Sponsor1 sponsor1 = new Sponsor1();
     sponsor1.Id = id;
     sponsor1.FirstName = firstName;
     sponsor1.LastName = lastName;
     sponsor1.PreferredContactMethod = preferredContactMethod;
     sponsor1.Email = email;
     sponsor1.Phone = phone;
     sponsor1.Street = street;
     sponsor1.City = city;
     sponsor1.State = state;
     sponsor1.Zip = zip;
     sponsor1.CreatedTime = createdTime;
     sponsor1.UpdatedTime = updatedTime;
     sponsor1.UpdatedBy = updatedBy;
     sponsor1.RowVersion = rowVersion;
     return sponsor1;
 }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Sponsors EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSponsors(Sponsor1 sponsor1)
 {
     base.AddObject("Sponsors", sponsor1);
 }