EditableChildList with ReadOnly Objects

EditableChildList with ReadOnly Objects

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


Poisson posted on Thursday, November 01, 2007

I am looking for a base class similiar to EditableChildList that will accept read-only objects. Does one exist? Seems like I should be able to add and remove from a list (or the underlying relational tables in the database) even though the elements in the list are read-only.

Thanks

RockfordLhotka replied on Thursday, November 01, 2007

If that is your goal, then use editable child objects that only have read-only properties. The child object is still editable - it can be added or removed, and thus is clearly being manipulated in more than a read-only manner. But such an object can still have only read-only properties so it is not possible to alter the object's property values.

Copyright (c) Marimer LLC