Noah Blumenthal's Blog

March 27, 2009

NHibernate ICriteria’s SetFirstResult is ZERO BASED!

Filed under: Uncategorized — noahblu @ 3:37 am

I should have remembered this, but somehow it slipped me by and stole hours of my day today.  Maybe it’s the term; First Result seems to indicate that it starts with 1.  Either way, just remember, SetFirstResult(1).SetMaxResults(50) is probably not what you’re trying to do.


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog at

%d bloggers like this: