NHibernate GetNamedQuery can not execute stored procedure -
so have stored procedure named get_by_cat_and_tag , should return table ms , , in c# code should return list of ms objects, ms.hbm.xml contains following: <sql-query name="get_by_cat_and_tag"> <!-- return type must nhibernate mapped entity --> <return class="ms"> <return-property column="id" name="id" /> <return-property column="filename" name="filename" /> <return-property column="displaytitle" name="displaytitle" /> <return-property column="isenabled" name="isenabled" /> <return-property column="mediatype" name="mediatype" /> <return-property column="priority" name="priority" /> <return-property column="datecreated" name="datecreated" /> <return-property column="datelastmodified" name="...