且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ASP.NET MVC + LINQ异常

更新时间:2023-02-15 23:12:07

我猜你可能会使用在请求级别被拴在生活范围的DataContext 类或在单水平。如果是我可能会建议您保持的范围在方法级别。

I guess the DataContext classes you may be using are tied to a life scope at the request level or at a singleton level. If it is I may suggest you to keep the scope at the method level.

奇怪LINQ异常(见答案的评论)