nhibernate 调用带返回参数的存储过程

时间:2021-05-28 15:45:23
            try
               {
                   DOHM_BureauInfos = session.GetNamedQuery("GetDOHM_BureauInfos").SetInt32("PageSizeint",PageSizeint).SetInt32("CurrentPage",CurrentPage)
                   .SetString("Columns",Columns)
                   .SetString("TableName",TableName)
                   .SetString("Condition",Condition)
                   .SetString("ascColumn",ascColumn)
                   .SetInt32("BitOrderbyType",BitOrderbyType)
                   .SetString("Pkcolumn",Pkcolumn)
                   .SetInt32("TotalCount",TotalCount).List<DOHM_BureauInfo>();
                   //PageSizeint,:CurrentPage,:Columns,:TableName,:Condition,:ascColumn,:BitOrderbyType,:Pkcolumn,:TotalCount
                   return DOHM_BureauInfos;
               }
大侠们看看怎么弄   我这样钓不到 TotalCount


2 个解决方案

#1


该回复于2013-06-20 09:54:43被管理员删除

#2


nhibernate 调用带返回参数的存储过程我不会  来领分的

#1


该回复于2013-06-20 09:54:43被管理员删除

#2


nhibernate 调用带返回参数的存储过程我不会  来领分的