I need to do the following for the purposes of paging a query in nHibernate:
Select count(*) from (Select e.ID,e.Name from Object as e where...)
NHibernate 3.0 allows Linq query.
Try this
int count = session.QueryOver().RowCount();