正如上面真的。
这是ISessionFactory.OpenSession()可以用的IDbConnection来提供。
An ISessionFactory.OpenSession() can be supplied with a IDbConnection.
另一种选择是实施IConnectionProvider至极将创建取决于一些条件(其必须是全球性的,从而使这种解决方案不是很干净)适当的IDbConnection实例
Another option is to implement a IConnectionProvider wich would create appropriate IDbConnection instances depending upon some condition (which has to be global, thus rendering this solution not very clean).