/// <summary> /// Create a new Address object. /// </summary> /// <param name="addressId">Initial value of the AddressId property.</param> /// <param name="addressType">Initial value of the AddressType property.</param> /// <param name="isPrimary">Initial value of the IsPrimary property.</param> public static Address CreateAddress(global::System.Int32 addressId, global::System.String addressType, global::System.Boolean isPrimary) { Address address = new Address(); address.AddressId = addressId; address.AddressType = addressType; address.IsPrimary = isPrimary; 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); }