title: How can I log the generated SQL from DbContext.SaveChanges() in my Program?
body: <p>According <a href="https://stackoverflow.com/a/1412902/1594487">this</a> thread, we can log the generated <code>SQL</code> via <code>EF</code>, but what about <code>DbContext.SaveChanges()</code>? Is there any easy way to do this job without any extra frameworks?</p>