开发者

Is there any way to get NHibernate to emit a deadlock hint?

Is there any wa开发者_JAVA百科y to get NHibernate to emit a deadlock hint? e.g. for SQL server "SET DEADLOCK_PRIORITY LOW". At the moment I'm just executing a raw SQL query.


Here is the technique set dead lock priority, this uses nhibernate interceptors in order emit deadlock priority

Disclosure: Please note that link provided is of my own website


I am pretty sure there is no such thing. And emiting raw SQL seems OK to me in this very specific case.


I used a technique based on interceptor and comments to add query hint to an HQL or ICriteria query, you can find details here. This is not the real solution for you but you can start from here and change the interceptor to allow deadlock hint.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜