I use the following snippet in mapping file and execute SQL Server stored procedure, my app works well
<sql-query name="test">
<return-scalar type="Date" column="Date"></return-scalar>
exec getDate :userID
</sql-query>
When I want to get a list of data from SQL server with the following mapping file :
<sql-query name="test">
<return class="test" alias="t">
<return-property name="Date" column="Date"></return-property>
</return>
exec getDate :userID
</sql-query>
I got problem :
System.IndexOutOfRangeException :
Error... Tablename_1_0_0 .......
Please tell me How I can get the list of data from executing stored procedure in NHibernate.
Thanks in advance.
Regards,
pcphuc.
|