private void FixupShipMethod(ShipMethod previousValue)
        {
            if (previousValue != null &&
                previousValue.PurchaseOrderHeaders.Contains(this))
            {
                previousValue.PurchaseOrderHeaders.Remove(this);
            }

            if (ShipMethod != null)
            {
                if (!ShipMethod.PurchaseOrderHeaders.Contains(this))
                {
                    ShipMethod.PurchaseOrderHeaders.Add(this);
                }
                if (ShipMethodID != ShipMethod.ShipMethodID)
                {
                    ShipMethodID = ShipMethod.ShipMethodID;
                }
            }
        }
        private void FixupShipMethod(ShipMethod previousValue)
        {
            if (previousValue != null
                && previousValue.SalesOrderHeaders.Contains(this))
            {
                previousValue.SalesOrderHeaders.Remove(this);
            }

            if (ShipMethod != null)
            {
                if (!ShipMethod.SalesOrderHeaders.Contains(this))
                {
                    ShipMethod.SalesOrderHeaders.Add(this);
                }
                if (ShipMethodID != ShipMethod.ShipMethodID)
                {
                    ShipMethodID = ShipMethod.ShipMethodID;
                }
            }
        }