private void FixupL_AccountFormType(L_AccountFormType previousValue) { if (previousValue != null && previousValue.TradingPlatforms.Contains(this)) { previousValue.TradingPlatforms.Remove(this); } if (L_AccountFormType != null) { if (!L_AccountFormType.TradingPlatforms.Contains(this)) { L_AccountFormType.TradingPlatforms.Add(this); } if (FK_AccountFormTypeID != L_AccountFormType.PK_AccountFormID) { FK_AccountFormTypeID = L_AccountFormType.PK_AccountFormID; } } else if (!_settingFK) { FK_AccountFormTypeID = null; } }
private void FixupL_AccountFormType1(L_AccountFormType previousValue) { if (previousValue != null && ReferenceEquals(previousValue.L_AccountFormType2, this)) { previousValue.L_AccountFormType2 = null; } if (L_AccountFormType1 != null) { L_AccountFormType1.L_AccountFormType2 = this; } }
private void FixupL_AccountFormType2(L_AccountFormType previousValue) { if (previousValue != null && ReferenceEquals(previousValue.L_AccountFormType1, this)) { previousValue.L_AccountFormType1 = null; } if (L_AccountFormType2 != null) { L_AccountFormType2.L_AccountFormType1 = this; if (PK_AccountFormID != L_AccountFormType2.PK_AccountFormID) { PK_AccountFormID = L_AccountFormType2.PK_AccountFormID; } } }
private void FixupL_AccountFormType(L_AccountFormType previousValue) { if (previousValue != null && previousValue.AccountCurrencies.Contains(this)) { previousValue.AccountCurrencies.Remove(this); } if (L_AccountFormType != null) { if (!L_AccountFormType.AccountCurrencies.Contains(this)) { L_AccountFormType.AccountCurrencies.Add(this); } if (FK_AccountFormTypeID != L_AccountFormType.PK_AccountFormID) { FK_AccountFormTypeID = L_AccountFormType.PK_AccountFormID; } } }