private void FixupL_AccountCode(L_AccountCode previousValue)
        {
            if (previousValue != null && previousValue.AssetManagers.Contains(this))
            {
                previousValue.AssetManagers.Remove(this);
            }


            if (L_AccountCode != null)
            {
                if (!L_AccountCode.AssetManagers.Contains(this))
                {
                    L_AccountCode.AssetManagers.Add(this);
                }

                if (FK_AccountID != L_AccountCode.PK_AccountID)

                {
                    FK_AccountID = L_AccountCode.PK_AccountID;
                }
            }

            else if (!_settingFK)

            {
                FK_AccountID = null;
            }
        }
        private void FixupL_AccountCode1(L_AccountCode previousValue)
        {
            if (previousValue != null && ReferenceEquals(previousValue.L_AccountCode2, this))
            {
                previousValue.L_AccountCode2 = null;
            }


            if (L_AccountCode1 != null)
            {
                L_AccountCode1.L_AccountCode2 = this;
            }
        }
        private void FixupL_AccountCode2(L_AccountCode previousValue)
        {
            if (previousValue != null && ReferenceEquals(previousValue.L_AccountCode1, this))
            {
                previousValue.L_AccountCode1 = null;
            }


            if (L_AccountCode2 != null)
            {
                L_AccountCode2.L_AccountCode1 = this;

                if (PK_AccountID != L_AccountCode2.PK_AccountID)

                {
                    PK_AccountID = L_AccountCode2.PK_AccountID;
                }
            }
        }