How to log queries using Entity Framework 7? -


I am using unit framework 7 on night building channel (I currently use version EntityFramework.7.0.0-beta2 I am doing-112524) and I am trying to log the queries generated by the e-mail by curiosity.

I am writing a simple console program, I tried to use that EF 6 usage, but DbContext Database The log entity is not available on Framework 7. Is there no way to log on to SQL generated by EF7?

For those using EF7, none of the above works for me, but this Like I'm working on it. (From Avi Cherry's comment)

In your startup.cs you have a specially configured method with a bunch of configurations near the configured method, it should look like the bottom ( In addition to your content).

  Configure Public Zero (IAP plugin file builder application, Illogger Factor Logger Factory) {// This Magic Line Logger is Factory.AddDebug (LogLevel.Debug); // Previous LogLevel.Verbose // Your Other Stuff}  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -