When setting the LoadOptions property on a LinqToSql DataContext, if the 开发者_开发知识库context has already returned results from another query, the exception \"Setting load options is not allowed a
My .NET MVC project has reached the stage of testing with multiple users and I am getting seemingly random errors (from any screen in the site) relating to Linq2Sql DataReader issues, such as:
I\'m using the following DataLoadOptions: DataLoadOptions options = new DataLoadOptions(); options.LoadWith<Family>(f => f.FamilyLanguages);
I know about the method discussed here: Solving common problems with Compiled Queries in Linq to Sql for high demand ASP.NET websites