我有以下示例代码:
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 查询?
有什么工具可以做到这一点吗?