我正在研究CompiledQuery性能,但CompiledQuery对LoadWith过敏。 using (CustomDataContext myDC = new CustomDataContext())
{
DataLoadOptions options = new DataLoadOptions();
options.LoadWith<Customer>(c => c
我知道这里讨论的方法: Solving common problems with Compiled Queries in Linq to Sql for high demand ASP.NET websites ...但是,这并不对我的情况工作,因为我得到一个: “设置加载选项没有结果后,不允许有从查询返回。“ 我使用的CodeSmith PLINQO脚本生成实体管理器代码,和经理的代码看起来是这