I’m searching best usage pattern in nhibernate pagination primary for asp mvc apps. Also, worth to mention is that queries should not use futures bacause there are not supported on all databases.
Thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use linq (
session.Query) withSkipandTake. This should work with most providers and it’s probably the simplest way to implement it.For example, to take 3rd page of length 10, you’d call: