/// <summary> /// Create a new Address object. /// </summary> /// <param name="addressId">Initial value of the AddressId property.</param> /// <param name="region">Initial value of the Region property.</param> /// <param name="city">Initial value of the City property.</param> /// <param name="numberOfHouse">Initial value of the NumberOfHouse property.</param> /// <param name="zipCode">Initial value of the ZipCode property.</param> /// <param name="phone">Initial value of the Phone property.</param> /// <param name="street">Initial value of the Street property.</param> public static Address CreateAddress(global::System.Int32 addressId, global::System.String region, global::System.String city, global::System.String numberOfHouse, global::System.String zipCode, global::System.String phone, global::System.String street) { Address address = new Address(); address.AddressId = addressId; address.Region = region; address.City = city; address.NumberOfHouse = numberOfHouse; address.ZipCode = zipCode; address.Phone = phone; address.Street = street; return address; }
/// <summary> /// Deprecated Method for adding a new object to the Address EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAddress(Address address) { base.AddObject("Address", address); }