首页 > 技术文章 > EF中打印出执行sql语句
MrZheng 2018-06-28 22:24 原文
不用非得去 SQL Server Profiler 中查看了
方法如下:
dbContext.Database.Log+=c=>Console.WriteLine(c)