I'm looking for a way to map a simple insert stored procedure using NHibernate 2.1
Most of the examples I find are for getting data back from a sproc - but what I'm trying to do is insert an audit like record using a stored procedure. But I would prefer to build a mapping file for this
Also - to be clear I'm not looking to build an entity + mapping file like the below. Instead I wanted to see if I could simply map the params in a single xml file and call it via "CreateSQLQuery" using the session object
<class name="Staff, SampleApplication.Library" table="Staff">
<id name="Id" column="Id" type="Int32">
<generator class="native" />
</id>
<property name="LastName" column="LastName" type="String" length="255"/>
<property name="FirstName" column="FirstName" type="String" length="255"/>
<property name="EmailAddress" column="EmailAddress" type="String" length="512"/>
<sql-insert>EXEC InsertStaff ?,?,?</sql>
</class>