This project has moved. For the latest updates, please go here.

Object Relationship

Developer
Apr 2, 2013 at 1:25 PM
Edited Apr 16, 2013 at 4:15 PM
In the following block of code where is ".lD" in "IinvoiceDetailListItem.lD == ld" coming from? I'm assuming it should be the LD of the invoice. Is this a generation issue?

ER = Invoice
ERL = InvoiceDetailList : BusinessBindingListBase<InvoiceDetailList, InvoiceDetailListItem>
ERC = InvoiceDetailListItem
    [Serializable]
    public partial class InvoiceDetailList : BusinessBindingListBase<InvoiceDetailList, InvoiceDetailListItem>
    {

        #region Collection Business Methods

        /// <summary>
        /// Removes a <see cref="InvoiceDetailListItem"/> item from the collection.
        /// </summary>
        /// <param name="ld">The LD of the item to be removed.</param>
        public void Remove(int ld)
        {
            foreach (var invoiceDetailListItem in this)
            {
                if (invoiceDetailListItem.lD == ld)
                {
                    Remove(invoiceDetailListItem);
                    break;
                }
            }
        }
Coordinator
May 10, 2013 at 1:08 AM
Hi Keith,

Didn't I answer this question?
Developer
May 10, 2013 at 3:10 AM
Edited May 17, 2013 at 3:59 PM
tiago wrote:
Hi Keith,

Didn't I answer this question?
<br/>

Not specifically in this thread but yes. It was the matching property name (ID) between the header and detail objects. I had this with PO and applied to Invoice.