Posted on 2011-05-11
Hi, I am using nhibernate in my web application to interact with my SQL Server database.
and using ICriteria to extract records from the database.
My question is, can I use ICriteria just to extract a single value(eg: Max(Column name)) from database and how can I store it in an integer variable?
Till now, I have been using ICriteria only with IList , but don't know how can I use it to return a single value from the database.
Could someone please help?