Beispiel #1
0
 /// <summary>
 /// Create a new Address object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="street">Initial value of the Street property.</param>
 /// <param name="number">Initial value of the Number property.</param>
 /// <param name="neighborhood">Initial value of the Neighborhood property.</param>
 /// <param name="zipCode">Initial value of the ZipCode property.</param>
 /// <param name="city">Initial value of the City property.</param>
 /// <param name="state">Initial value of the State property.</param>
 public static Address CreateAddress(global::System.Int32 id, global::System.String street, global::System.Int32 number, global::System.String neighborhood, global::System.String zipCode, global::System.String city, global::System.String state)
 {
     Address address = new Address();
     address.Id = id;
     address.Street = street;
     address.Number = number;
     address.Neighborhood = neighborhood;
     address.ZipCode = zipCode;
     address.City = city;
     address.State = state;
     return address;
 }
Beispiel #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Addresses EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAddresses(Address address)
 {
     base.AddObject("Addresses", address);
 }