简体   繁体   中英

Connection pooling using custom connection provider

Is connection pooling enabled when you use a custom connection provider that generates connection strings dynamically? The user is the only data changed in the connection string, and many sessions can be opened for the same user through the time. By the way, I'm using NHibernate 3.0 to connect to a database in SQL Server 2005.

无论如何生成连接字符串,都将使用ADO.NET池,但是将连接字符串绑定到池时,字符串必须相同,因此,如果用户名更改,则不满足此条件,因此您将从每个用户的不同池中获得连接。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM