in my first(!) real SL-app (so, no MVVM or other 'must haves' ;-)) now the time has come to load several collections(in fact inheriting from NameValueListBase) to fill some comboboxes.
I'm a little confused how to do that in a correct way. With only one collection I pass a method to fill into an app-wide-property (since it's used more than once) as the callback. But what with more than one collection? Isn't there a prob with several, maybe overlapping db-fetches (made by ADO.net)? In good ol' windows times I wrapped that all into one method that was executed via a backgroundworker in a serial manner.
Maybe I'm just not seeing the wood for the trees?
Thanks for any input
You should use a "unit of work" object, as discussed in this FAQ (http://www.lhotka.net/cslanet/faq/CslaObjectFaq.ashx) and in the Using CSLA 4 ebook series (http://store.lhotka.net).
as always, a direct hit ;-) I really appreciate your answer.
Maybe I should read the ebook first. If there wouldn't be that timeframe...
Thanks a lot and best wishes
Copyright (c) Marimer LLC