- using (Entities entities = new Entities())
- {
- var query = from st in entities.ShiTi
- select st;
- ObjectQuery oq = query as ObjectQuery;
- string sql = oq.ToTraceString();
- Console.WriteLine(sql);
- }
相关文章
- 12-16怎么查看VS2012中EF对应的SQL语句
- 12-16Entity Framework中查看生成的SQL语句
- 12-16Entity Framework中查看生成的SQL语句
- 12-16Entity Framework中执行Sql语句
- 12-16LinqToSql EntityFramework(ef)查看生成的sql语句
- 12-16sql server中如何查看执行效率不高的语句
- 12-16ahjesus 捕获entity framework生成的sql语句
- 12-16SqlServer 中如何查看某一个Sql语句是复用了执行计划,还是重新生成了执行计划
- 12-16EF-查看生成的SQL语句
- 12-16Entity Framewrok 7beta7中不同版本sql server自动生成分页sql语句的问题