DataPortal, EditableChildList, creation of child object

DataPortal, EditableChildList, creation of child object

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


fsl posted on Wednesday, February 17, 2010

Hi

When creating a new EditableChildList I want to populate it with some children, is it possible to pass some data to these children. E.g. could i just add a method:

private void Child_Create(Foo data)

to my child class?

And then call this method in my EditableChildList class..

Regards,

Fredrik

fsl replied on Wednesday, February 17, 2010

Doh, I think i can answer that myself.. The signature of CreateChild is

DataPortal.CreateChild<T>(params object[] parameters)

Copyright (c) Marimer LLC