I'm having some trouble excuting a query in fluent nhibernate. I have a table : Books with the following columns:
ID, NAME, YEAR, BOOK_TYPE, AUTHOR_ID
I want to excute the following sql query in Fluent NHibernate:
SELECT BOOK_TYPE, COUNT(*)
FROM BOOKS
GROUP BY BOOK_TYPE