Example #1
0
        private void Fixupinvoiceitem1(invoiceitem previousValue)
        {
            if (previousValue != null && previousValue.invoiceitems1.Contains(this))
            {
                previousValue.invoiceitems1.Remove(this);
            }

            if (invoiceitem1 != null)
            {
                if (!invoiceitem1.invoiceitems1.Contains(this))
                {
                    invoiceitem1.invoiceitems1.Add(this);
                }
                if (relid != invoiceitem1.id)
                {
                    relid = invoiceitem1.id;
                }
            }
            else if (!_settingFK)
            {
                relid = null;
            }
        }
Example #2
0
        private void Fixupinvoiceitem1(invoiceitem previousValue)
        {
            if (previousValue != null && previousValue.invoiceitems1.Contains(this))
            {
                previousValue.invoiceitems1.Remove(this);
            }

            if (invoiceitem1 != null)
            {
                if (!invoiceitem1.invoiceitems1.Contains(this))
                {
                    invoiceitem1.invoiceitems1.Add(this);
                }
                if (relid != invoiceitem1.id)
                {
                    relid = invoiceitem1.id;
                }
            }
            else if (!_settingFK)
            {
                relid = null;
            }
        }