EncapsulatedInvoke question

EncapsulatedInvoke question

Old forum URL: forums.lhotka.net/forums/t/10732.aspx


tiago posted on Sunday, October 02, 2011

Hi Rocky,

On the EncapsulatedInvoke sample for Using Csla 4 ebook series
- Library.net project
- OrderEdit.cs file
- DataPortal_Insert method

FieldManager:UpdateChildren is commented and replaced by DataPortalUpdateChild:

//FieldManager.UpdateChildren(this);

DataPortal.UpdateChild(OrderLineItems, this);

I notice DataPortal_Update uses FieldManager:UpdateChildren as well as other DataPortal_Insert methods elsewhere.. Is there a reason for not using it on the above case?

 

RockfordLhotka replied on Sunday, October 02, 2011

I think I needed that line of code for the ebook, so I commented out the normal line of code and inserted the one that's there now. I do normally use the field manager, except in those rare cases where I need control over the order the child objects update.

Copyright (c) Marimer LLC