我會通過說我正在使用NHibernate v3.2
序言這個問題。
比方說,我有一個連接字符串,如下面的(在這裏關鍵是Failover Partner
):NHibernate w /數據庫鏡像通過連接字符串中的故障轉移夥伴
Data Source=Server1\Instance;Failover Partner=Server2\Instance;Initial Catalog=MyDb;Integrated Security=True;
我發現一個hibernate
論壇該主題相關的以下文章:
https://forum.hibernate.org/viewtopic.php?f=25&t=979764
一用戶提到了以下:
We had a slight hiccup with the way we were caching our NHibernate session and had to add a method that verifies the session's connection is still open when we pull it out of the call context.
NHibernate的不支持此數據基地鏡像選項開箱即用,因爲它使用ADO.net?
在使用這樣的連接字符串時,是否有任何特殊情況需要注意?