Retrieve all records in a table with nHibernate
Posted
by brainimus
on Stack Overflow
See other posts from Stack Overflow
or by brainimus
Published on 2010-06-16T13:08:46Z
Indexed on
2010/06/16
13:12 UTC
Read the original article
Hit count: 157
nhibernate
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?
© Stack Overflow or respective owner