Native SQL and Stored Procedures

Topic updated 3-5-2007

Under Construction

Features added to NHibernate version 1.2 include more extensive support for native SQL. This can be used for calls to stored procedures. This chapter explains how you can add custom code to you BO-Layer project to make it work with stored procedures.

NHibernate supports use of native SQL queries in several ways:

native SQL calls can be made directly from code
native SQL calls can be defined in NHibernate mappings