private void FixupBankAccountInformation(BankAccountInformation previousValue) { if (previousValue != null && previousValue.AdminTransactions.Contains(this)) { previousValue.AdminTransactions.Remove(this); } if (BankAccountInformation != null) { if (!BankAccountInformation.AdminTransactions.Contains(this)) { BankAccountInformation.AdminTransactions.Add(this); } if (FK_BankInfoID != BankAccountInformation.PK_BankAccountInformationID) { FK_BankInfoID = BankAccountInformation.PK_BankAccountInformationID; } } else if (!_settingFK) { FK_BankInfoID = null; } }
private void FixupBankAccountInformation(BankAccountInformation previousValue) { if (previousValue != null && previousValue.DepositOrWithdrawActivities.Contains(this)) { previousValue.DepositOrWithdrawActivities.Remove(this); } if (BankAccountInformation != null) { if (!BankAccountInformation.DepositOrWithdrawActivities.Contains(this)) { BankAccountInformation.DepositOrWithdrawActivities.Add(this); } if (FK_BankID != BankAccountInformation.PK_BankAccountInformationID) { FK_BankID = BankAccountInformation.PK_BankAccountInformationID; } } else if (!_settingFK) { FK_BankID = null; } }