コード例 #1
0
 /// <summary>
 /// Create a new Address object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="number">Initial value of the Number property.</param>
 /// <param name="streetName">Initial value of the StreetName property.</param>
 /// <param name="city">Initial value of the City property.</param>
 /// <param name="province">Initial value of the Province property.</param>
 /// <param name="country">Initial value of the Country property.</param>
 /// <param name="postalCode">Initial value of the PostalCode property.</param>
 /// <param name="addressType">Initial value of the AddressType property.</param>
 public static Address CreateAddress(global::System.Int32 id, global::System.String number, global::System.String streetName, global::System.String city, global::System.String province, global::System.String country, global::System.String postalCode, global::System.String addressType)
 {
     Address address = new Address();
     address.Id = id;
     address.Number = number;
     address.StreetName = streetName;
     address.City = city;
     address.Province = province;
     address.Country = country;
     address.PostalCode = postalCode;
     address.AddressType = addressType;
     return address;
 }
コード例 #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);
 }