【发布时间】:2011-04-29 19:26:18
【问题描述】:
假设我的 LINQ 查询是这样的
var qry = from c in nwEntitiesContext.CategorySet.AsEnumerable()
let products = this.GetProducts().WithCategoryID(c.CategoryID)
select new Model.Category
{
ID = c.CategoryID,
Name = c.CategoryName,
Products = new Model.LazyList<Core.Model.Product>(products)
};
return qry.AsQueryable();
我只想知道它将在运行时生成什么查询....当我们在调试模式下运行代码时如何查看它从 VS2010 IDE 生成什么查询....逐步指导我。
【问题讨论】:
标签: linq visual-studio-2010 entity-framework-4 linq-to-entities