private void FixupL_RecievingBank(L_RecievingBank previousValue) { if (previousValue != null && previousValue.AssetManagers.Contains(this)) { previousValue.AssetManagers.Remove(this); } if (L_RecievingBank != null) { if (!L_RecievingBank.AssetManagers.Contains(this)) { L_RecievingBank.AssetManagers.Add(this); } if (FK_ReceivingBankInformationID != L_RecievingBank.PK_RecievingBankID) { FK_ReceivingBankInformationID = L_RecievingBank.PK_RecievingBankID; } } else if (!_settingFK) { FK_ReceivingBankInformationID = null; } }
private void FixupL_RecievingBank(L_RecievingBank previousValue) { if (previousValue != null && previousValue.FundingSources.Contains(this)) { previousValue.FundingSources.Remove(this); } if (L_RecievingBank != null) { if (!L_RecievingBank.FundingSources.Contains(this)) { L_RecievingBank.FundingSources.Add(this); } if (FK_ReceivingBankInfoID != L_RecievingBank.PK_RecievingBankID) { FK_ReceivingBankInfoID = L_RecievingBank.PK_RecievingBankID; } } else if (!_settingFK) { FK_ReceivingBankInfoID = null; } }