Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在stackoverflow中寻找它但没有成功......
是否可以在 asp.net 中进行连接池?值得吗?如何?
它实际上非常简单,只需将以下参数添加到您的连接字符串和(在代码中或在 web.config 中)和 ASP.NET 将拿起其余的:
Min Pool Size=5; Max Pool Size=60; Connect Timeout=300;
注意:连接超时以秒为单位,不是必需的。
默认情况下,最大池为 100