How do I call a stored procedure from NHibernate that has no result?

后端 未结 7 1515
慢半拍i
慢半拍i 2020-12-09 08:02

I have a stored procedure that logs some data, how can I call this with NHibernate?

So far I have:

ISession session = ....
IQuery query = session.Cre         


        
7条回答
  •  猫巷女王i
    2020-12-09 08:49

    This seems to be a limitation of NHibernate, from NHibernate Documentation:

    The procedure must return a result set. NHibernate will use IDbCommand.ExecuteReader() to obtain the results.

提交回复
热议问题