The generated command in the <sql-query> element of the hbm.xml file contains a call syntax which is not accepted by NHibernate.
I get sth like this:
Code: Select all
exec dbo.MyProc(:Param1, :Param2)
NHibernate returns an error like this:
Code: Select all
[SQL: exec dbo.MyProc(@p0, @p1)] ---> System.Data.SqlClient.SqlException: Incorrect syntax near '@p0'.