You can turn on logging for your Entity Framework code with a single line. Configuring it to write to a file takes only a little bit more effort. Assuming that you're using Entity Framework 6, you ...