private void FixupFund(Fund previousValue)
        {
            if (previousValue != null && previousValue.Apps.Contains(this))
            {
                previousValue.Apps.Remove(this);
            }

            if (Fund != null)
            {
                if (!Fund.Apps.Contains(this))
                {
                    Fund.Apps.Add(this);
                }
                if (FundId != Fund.Id)
                {
                    FundId = Fund.Id;
                }
            }
        }
        private void FixupFund(Fund previousValue)
        {
            if (previousValue != null && previousValue.ServiceConstraints.Contains(this))
            {
                previousValue.ServiceConstraints.Remove(this);
            }

            if (Fund != null)
            {
                if (!Fund.ServiceConstraints.Contains(this))
                {
                    Fund.ServiceConstraints.Add(this);
                }
                if (FundId != Fund.Id)
                {
                    FundId = Fund.Id;
                }
            }
            else if (!_settingFK)
            {
                FundId = null;
            }
        }