/// <summary> /// Deprecated Method for adding a new object to the ShipAddresses EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToShipAddresses(ShipAddress shipAddress) { base.AddObject("ShipAddresses", shipAddress); }
/// <summary> /// Create a new ShipAddress object. /// </summary> /// <param name="shipAddressId">Initial value of the ShipAddressId property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="address1">Initial value of the Address1 property.</param> /// <param name="city">Initial value of the City property.</param> /// <param name="state">Initial value of the State property.</param> /// <param name="zip">Initial value of the Zip property.</param> public static ShipAddress CreateShipAddress(global::System.Int32 shipAddressId, global::System.String name, global::System.String address1, global::System.String city, global::System.String state, global::System.Int32 zip) { ShipAddress shipAddress = new ShipAddress(); shipAddress.ShipAddressId = shipAddressId; shipAddress.Name = name; shipAddress.Address1 = address1; shipAddress.City = city; shipAddress.State = state; shipAddress.Zip = zip; return shipAddress; }