private void FixupCUSTOM_DOWNLOAD_TRANSACTIONDATA(CUSTOM_DOWNLOAD_TRANSACTIONDATA previousValue)
        {
            if (previousValue != null && previousValue.CUSTOM_DOWNLOAD_TRANSACTIONDATADETAIL.Contains(this))
            {
                previousValue.CUSTOM_DOWNLOAD_TRANSACTIONDATADETAIL.Remove(this);
            }

            if (CUSTOM_DOWNLOAD_TRANSACTIONDATA != null)
            {
                if (!CUSTOM_DOWNLOAD_TRANSACTIONDATA.CUSTOM_DOWNLOAD_TRANSACTIONDATADETAIL.Contains(this))
                {
                    CUSTOM_DOWNLOAD_TRANSACTIONDATA.CUSTOM_DOWNLOAD_TRANSACTIONDATADETAIL.Add(this);
                }
                if (TransactionDataID != CUSTOM_DOWNLOAD_TRANSACTIONDATA.ID)
                {
                    TransactionDataID = CUSTOM_DOWNLOAD_TRANSACTIONDATA.ID;
                }
            }
        }
コード例 #2
0
        private void FixupCUSTOM_DOWNLOAD_TRANSACTIONDATA(CUSTOM_DOWNLOAD_TRANSACTIONDATA previousValue)
        {
            if (previousValue != null && previousValue.CUSTOM_S02004.Contains(this))
            {
                previousValue.CUSTOM_S02004.Remove(this);
            }

            if (CUSTOM_DOWNLOAD_TRANSACTIONDATA != null)
            {
                if (!CUSTOM_DOWNLOAD_TRANSACTIONDATA.CUSTOM_S02004.Contains(this))
                {
                    CUSTOM_DOWNLOAD_TRANSACTIONDATA.CUSTOM_S02004.Add(this);
                }
                if (TransactionDataID != CUSTOM_DOWNLOAD_TRANSACTIONDATA.ID)
                {
                    TransactionDataID = CUSTOM_DOWNLOAD_TRANSACTIONDATA.ID;
                }
            }
            else if (!_settingFK)
            {
                TransactionDataID = null;
            }
        }