I need to retrieve all the records in a table with nHibernate. If I had the key for all the records in the table I could loop and use nHibernate's Get
method (this seems inefficient though) but I don't have the keys. I could also use FindAll
but this requires criteria or a stored procedure.
How can I get all the records from the table?