/// <summary> /// Create a new Address object. /// </summary> /// <param name="addressID">Initial value of the addressID property.</param> /// <param name="addressLine1">Initial value of the addressLine1 property.</param> /// <param name="postalCode">Initial value of the postalCode property.</param> /// <param name="cityID">Initial value of the cityID property.</param> /// <param name="country">Initial value of the country property.</param> public static Address CreateAddress(global::System.Int32 addressID, global::System.String addressLine1, global::System.String postalCode, global::System.Int32 cityID, global::System.String country) { Address address = new Address(); address.addressID = addressID; address.addressLine1 = addressLine1; address.postalCode = postalCode; address.cityID = cityID; address.country = country; return address; }
/// <summary> /// Deprecated Method for adding a new object to the Addresses EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAddresses(Address address) { base.AddObject("Addresses", address); }