I\'m using the QueryOver api that is part of NHibernate 3.x. I would like to get a row count, but the method I\'m using returns all objects and then gets the count of the colle
Another method:
int employerCount = session .QueryOver() .Where(x => x.EmployerIsActive) // some condition if needed .Select(Projections.Count(x => x.EmployerId)) .SingleOrDefault();