Howdy y'all,
I'm working on a WCF-application. Now the UI-guys need the following: There is an overview table showing a (paged) list of an entity. If you click on one of the entities another page will load where you are able to modify the properties of this entity. So far no problem. Usually you modify the properties, click on a save button and return to the overview table. Also no problem. Now they want a "save & previous" and a "save & next" button. This actually makes sense in certain scenarios... Is there a non-violent way of getting the next or previous entity (e.g. the entity has a "Name" property and the entities are supposed to be sorted by name)? To make matters worse: Because we use WCF(!) I have got a new session for every service method call. The violent way would be to query all entities of a type, look for the one we got and return the next or previous one...yikes! Any ideas?
Regards, void*
|