1.5. Part 4: Other NHibernate Bits and Pieces

I couldn't include all of the features of NHibernate in the sample application, so the following sections cover other important features. These include other methods for querying for your business entities, mapping inheritance structure, and viewing the type of raw SQL that NHibernate produces.

1.5.1. Other Querying Methods

Apart from HQL and the Criteria API, there are several other methods at your disposal to retrieve your business entities from the database.

1.5.1.1. Named Query–Store Procedures

If you wish to use stored procedures with NHibernate to retrieve your business objects, you can do so using the ISession's GetNamedQuery method. You first need to set up the metadata of the stored procedure ...

Get NHibernate with ASP.NET Problem-Design-Solution now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.