nHibernate存储过程调用以返回数据列表

nHibernate存储过程调用以返回数据列表,nhibernate,stored-procedures,Nhibernate,Stored Procedures,我想从应用程序调用存储过程,而不在映射文件中指定任何内容。我的存储过程返回的是一个列表 public IList<INewItem> GetItemsByfilter(IList<object> Filters) { // call sp with out using the mapping file sp returns a dataset } public IList GetItemsByfilter(IList过滤器) { //使用映射文件调出sp sp返

我想从应用程序调用存储过程,而不在映射文件中指定任何内容。我的存储过程返回的是一个列表

public IList<INewItem> GetItemsByfilter(IList<object> Filters)
{
    // call sp with out using the mapping file sp returns a dataset
}
public IList GetItemsByfilter(IList过滤器)
{
//使用映射文件调出sp sp返回数据集
}
或者从
session.Connection
获取原始
IDbConnection
,并使用ADO.NET运行存储过程

IList results = session.CreateSQLQuery("exec myStoredProcedure").List();