title: Could you help me to configure the store procedure in the NHibernate config file?
body: <p>In my program, i need get a exec a store procedure to decide to get a object from which table, so i need config a stored procedure in my entity nhibernate config file, the config file like below:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"&gt;
      &lt;class name="Entity.ACC.User, Entity" table="ACC_User" lazy="false"&gt;
          &lt;id name="Id" column="Id" type="Int32" unsaved-value="0" &gt;
              &lt;generator class="increment" /&gt;
          &lt;/id&gt;
          &lt;property name="Code" column="Code" type="String" length="50" /&gt;    
          &lt;property name="Password" column="Password" type="String" length="50" /&gt;    
          &lt;property name="FirstName" column="FirstName" type="String" length="50" /&gt;  
          &lt;property name="LastName" column="LastName" type="String" length="50" /&gt;    
          &lt;property name="Type" column="Type" type="Int16"  /&gt;    
          &lt;property name="Email" column="Email" type="String" length="50" /&gt;  
          &lt;property name="TelPhone" column="TelPhone" type="String" length="50" /&gt;    
          &lt;property name="MobilePhone" column="MobilePhone" type="String" length="50" /&gt;  
          &lt;property name="Language" column="Language" type="String" length="50" /&gt;    
          &lt;property name="IsActive" column="IsActive" type="Boolean"  /&gt;  
          &lt;property name="AccountExpired" column="AccountExpired" type="Boolean"  /&gt;  
          &lt;property name="AccountLocked" column="AccountLocked" type="Boolean"  /&gt;    
          &lt;property name="PasswordExpired" column="PasswordExpired" type="Boolean"  /&gt;    
          &lt;property name="CreateUserId" column="CreateUser" type="Int32" update="false"  /&gt;   
          &lt;property name="CreateUserName" column="CreateUserNm" type="String" length="100" update="false" /&gt;  
          &lt;property name="CreateDate" column="CreateDate" type="DateTime" update="false"  /&gt;  
          &lt;property name="LastModifyUserId" column="LastModifyUser" type="Int32"  /&gt;  
          &lt;property name="LastModifyUserName" column="LastModifyUserNm" type="String" length="100" /&gt; 
          &lt;property name="LastModifyDate" column="LastModifyDate" type="DateTime"  /&gt;
      &lt;sql-insert&gt;
        exec USP_User_Insert ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?
      &lt;/sql-insert&gt;
      &lt;sql-update&gt;
        exec USP_User_Update ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?
      &lt;/sql-update&gt;
      &lt;sql-delete&gt;
        exec USP_User_Delete ?
      &lt;/sql-delete&gt;
    &lt;/class&gt;
    &lt;sql-query name="User_Select"&gt;
      &lt;return class="Entity.ACC,Entity.ACC.User"/&gt;
      exec USP_User_Select ?
    &lt;/sql-query&gt;
  &lt;/hibernate-mapping&gt;
  </code></pre>
  
  <p>after i added this query SP in the config file</p>
  
  <p>
      
      exec USP_User_Select ?
    </p>
  
  <p>the program can't run and will throw exception as:</p>
  
  <pre><code>unknown class Entity.ACC, Entity.ACC.User
  </code></pre>
  
  <p>what should i do let the SP work.</p>
  
  <p>many thanks.</p>