Hi,I was wondering if there was a nice and efficient way in Raven to get the next and previous documents based on the document being loaded.session.Load<Class>("items/1")ThanksNeil--
You received this message because you are subscribed to the Google Groups "ravendb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
A responder in a bundle that allows you to write something like:
session.Load<MyDoc>( “-id-” ).Next();
the problem, as Oren stated, is that the definition of next/previous is something that is known to you not to RavenDB.
.m
--
I think you mean like if you load a blog post, the next and previous by date. One solution is to do the three queries using Lazily. Another would be to store next/prev ids in the blog itself, but that would require thought if you want to be able to move posts around in time.
--