Beispiel #1
0
 /// <summary>
 /// Create a new Address object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="countryId">Initial value of the CountryId property.</param>
 /// <param name="stateId">Initial value of the StateId property.</param>
 /// <param name="cityId">Initial value of the CityId property.</param>
 /// <param name="zipCodeId">Initial value of the ZipCodeId property.</param>
 public static Address CreateAddress(global::System.Int32 id, global::System.Int32 countryId, global::System.Int32 stateId, global::System.Int32 cityId, global::System.Int32 zipCodeId)
 {
     Address address = new Address();
     address.Id = id;
     address.CountryId = countryId;
     address.StateId = stateId;
     address.CityId = cityId;
     address.ZipCodeId = zipCodeId;
     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);
 }