Parent Root Collection PersistanceParent Root Collection Persistance
Old forum URL: forums.lhotka.net/forums/t/5873.aspx
Slayer posted on Monday, November 24, 2008
Hi
Im am currently working with csla 2.0. I created a customers collections class, derived from BusinessListBase, which contains a collection of editable customer objects. Each customer class contains a child collection of contacts. In order to persist everything I just call customers.save().
My question : Does the csla allow that I can save each customer object in the customers collection manually rather that persisting the whole customers collection? I dont want to use a read only list of customers, as I will need to refresh the list every time one customer object has been edited. Any ideas ?
ThanksRockfordLhotka replied on Monday, November 24, 2008
CSLA .NET version 2.1 and higher includes EditableRootListBase, which allows you to load a collection of editable root objects, and then you can (must) save each individual root object as it is changed.Copyright (c) Marimer LLC