摘要: 在EF执行中,有时候需要知道执行的SQL语句,如何打印出SQL语句。 核心代码:db.Database.Log = Console.WriteLine; using (dbContext db = new dbContext()) { db.Database.Log = Console.WriteL 阅读全文
posted @ 2020-12-22 09:52 yuejin 阅读(1291) 评论(0) 推荐(0) 编辑