阅读背景:

多个(每页)与单个(静态/全局)数据库连接

来源:互联网 

I'm working on a Asp.Net website. Currently, I'm creating (and closing) a db connection per page (on load). But I'm not sure, that is the true way. I wonder, if I create a db connection in a static class or WebApplication's main Global.asax, may it be better than creating db connections per page?I'm working on a Asp.Net website. Currently, I'




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: