阅读背景:

Why are my connections not closed even if I explicitly dispose of the DataContext?

来源:互联网 

I encapsulate my linq to sql calls in a repository class which is instantiated in the constructor of my overloaded controller. The constructor of my repository class creates the data context so that for the life of the page load, only one data context is used.I encapsulate my linq to sql calls in a reposit




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

分享到: