我正在尝试执行名为Procedure_Name的存储过程,我创建了hbm.xml文件:
`<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" auto-import="true">
<sql-query name="new_procedure">
<return alias="poc" class="TestHBN.Models.ProcResult, TestHBN">
<return-property column="ID" name="ID" />
<return-property column="Name" name="Name" />
<return-property column="Price" name="Price" />
</return>
<![CDATA[
CALL new_procedure
]]>
</sql-query>
.`
但我在sesion.GetNamedQuery("Procedure_Name")
上收到此错误。