Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
        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;
            }
        }