envt: MOSS 2007
I have been trying to get my head around on P&P for 2007. It looks fine and adaptable but I do not see pagination / sorting designs implemented there. End of the day in the User Interface we need to provide the ability ot page and to sort the data (ASP.NET
Grid in user control). Now in P&P we don't have datatables (weakly typed) but have domain models (strongly typed).
Now had this been datatables, I could have retained the datatable in memory (cache / session) and could have gone back to it every time a user sorts / or does paging. But with domain objects we don't have that flexibility but will have to
implement the logic on our own. Thats is fine, But i dont see a IQueryable or something of that sort being passed back.
1) Any ideas on how to do this with clean separation of concerns?
2) If we are going IQueryable way of exposing a say - DomainObject.FindByLoginName(id) - Then we dont have an option, but to go to the database for every call? Right ? Is that a good design OR do we other better ideas ?
View Complete Post