Root and Child in a list
Old forum URL: forums.lhotka.net/forums/t/7433.aspx
erict2000 posted on Monday, August 10, 2009
I've got an object Invoice, which I've made a root object. Now I want to load a list, so I have InvoiceList where the Invoices are created with an internal constructor. Problem is that these objects are now considered new. I can't update an invoice, Save() calls DataPortal_Insert instead. I don't want to have to use DataPortal_Fetch of the Invoice for each invoice, but how can I convince the object that it isn't new? erict2000 replied on Monday, August 10, 2009
Oops -- just found the MarkOld() method. That seems to be the ticket. Copyright (c) Marimer LLC