开发者

Problem faced while querying Using Nhibernate

I am having difficulties getting a subset of results From a huge set of results and then performing a join on this particular subset.. can anyone help regarding this??

More specifically开发者_高级运维,

Say I have an student Table which contains 1000 rows of student and department table which has the list of departments. What I want to do is to get a subset of rows say from 510 to 520 and then perform a join on these rows with the department table..

can anyone help me regarding this???


You can do it using one and only query:

Once you have your criteria object, do this:

criteria.SetFirstResult(510).SetMaxResult(10);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜