tags:

views:

20

answers:

0

Hi All,

I had earlier posted this in the msdn forum, but could not people's attention OR possibly the question was silly !!!

Envt: MOSS 2007

I have been trying to get my head around on P&P for MOSS 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 to page and to sort the data (Think 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. That's is fine, But I don't see a IQueryable or something of that sort being passed back. There are links that actually suggest NOT to use IQueryable for Sharepoint Lists.

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 don't have an option, but to go to the database for every call? Right ? Is that a good design OR do we other better ideas ?

Cheers