Hi,
In my old postings here, we discussed various architectures and how we were working with the gen'd data later and what kind of BL we had. I decided on a level of abstraction (Wayne hada similar model), whereby we made it a rule that the PL does not know about LLBL, instead it calls methods on the BL to get the entities or ICollections that are needed. So the BL could pass back a datatable, custom collection, or single entity classes.
Right - my question is, using this type of design, I need my BL methods to accept "sort" parameters from the PL to determine what to sort by. THis is causing me some grief. In our old app, we would just pass through a string like "Title asc" and the BL would apply that to the resulting recordset. Now though, I need to construct a sort expression in LLBL, and the only solution I can think of is to allow the PL to pass to the BL a pre-defined LLBL sort expression - but this breaks all my architecture rules It strikes me as a vaild PL action to want to sort the data, but how can it do this without being involved in the actual BL/DL code........hmmmmmmmm
What should I do? What have other people done? Gotta sort this out (how many sort-related puns can I make in this post!!)
Thanks