Hi, can anyone tell me, how to to set the properties of a ReadOnlyBase child when using managed readonly properties without private backing fields? Since there is no field and no setter: how to initialize the child objects data from the parents dataportal? (CSLA 3.6.3)
Thanks for any hint or example!
- Harald
When populating the object, you can use LoadProperty - i.e. LoadProperty(FirstNameProperty, "chris")
Is that what you're asking?
If you're talking about populating a child from the parent's fetching of the data, you can
LoadProperty(ChildObjectProperty, ChildObjectClass.GetChildObject(safeDataReader));
Chapter 7, Page 244 onwards. LoadProperty
Copyright (c) Marimer LLC