Need for creating lists of type ReadOnlyListBase...

Need for creating lists of type ReadOnlyListBase...

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


ballistic posted on Tuesday, April 19, 2011

I have been using CSLA for a couple of years now and am about to start a new project. I am planning out how I will be laying out my objects and basically do not see the need to use ReadOnlyListBase.

In the past, when I create and InfoList class I seem to spend too much time creating the class, criteria and data access. I will be using Entity Framework for the access layer, so that should help a bit. However, I think that for lists, it might be better to use IEnumerable<MyInfoObject>.

Any recommendations would be greatly appreciated!

 - Andy

RockfordLhotka replied on Wednesday, April 20, 2011

That may work fine, with the following limitations (off the top of my head):

My recommendation is that you look at the current CSLA 4 code techniques for using ROLB and ROB (as shown in the Using CSLA 4 ebooks). The amount of code required is quite low - and (assuming you want the features of the data portal and data binding) you'll almost certainly end up writing at least that much code to roll your own solution.

 

Copyright (c) Marimer LLC