有关连接池及其工作的问题 [英] question about the connection pooling and its working

查看:75
本文介绍了有关连接池及其工作的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用数据表来存储appsetting(键值对)并存储连接字符串.如果我使用这样的连接字符串而不是将其保留在app.config中,那么连接池有效吗?请问对此我需要一些详尽的解释吗?
(代替ConfigurationManager.AppSettings ["Connectionstring"] im使用函数调用获取连接字符串的值,从数据表中获取).

解决方案

连接池取决于连接字符串你用来连接.它不依赖于存储连接字符串的位置.


hi
Im using a datatable to store appsetting(key-value pairs)and also to store connection string .If i use connection string like this instead of keeping it in app.config does the connection pooling works? pls i need some elaborated explanation for this?
(instead of ConfigurationManager.AppSettings["Connectionstring"] im using a function call to get the value of connection string fron datatable)

解决方案

Connection pooling depends on the connection string you use to connect. It doesn''t depend on where you store the connection string.


这篇关于有关连接池及其工作的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆