【发布时间】:2012-11-28 12:48:33
【问题描述】:
我有以下示例代码:
Context context = new Context();
Repository repository = new Repository(context);
Post post = repository.First<Post>(x => x.Id == 1);
Model model = new Model {
Created = cube.Created,
Id = cube.Id,
Name = cube.Name,
Pack = cube.Pack.Id,
Mimes = context.Files.Where(x => x.Id == 1).Select(x => x.Mime).ToList()
};
我需要找出哪些 SQL 查询正在发送到数据库。
如何使用 SQL Express 和 VS 2012 分析 EF 查询?
有这方面的工具吗?
【问题讨论】:
标签: sql entity-framework