LinqToSql EntityFramework(ef)查看生成的sql语句

var dc=new DBDataContext();

TextWriter tw = new StringWriter();
dc.Log = tw;
var list = dc.News.Skip((page - 1) * limit).Take(limit).ToList();
Utils.Logger.InfoLog("page:"+page+" limit:"+limit+" sql:"+tw);

BE06A616-4586-4795-8ED0-43BAABC0A07B|From:http://www.cnblogs.com/xuejianxiyang/p/8926210.html

上一篇:MySQL死锁原因分析


下一篇:五校联考模拟赛Day2T2矩阵(容斥原理)