Last active
May 5, 2017 18:56
-
-
Save gustavodaquino/5be024af877f27b11fc2103f465a8f26 to your computer and use it in GitHub Desktop.
Show actual query generated by Entity Framework.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (MyContext context = new MyContext()) | |
{ | |
// This will show the SQL in the Output -> Debug window. | |
context.Database.Log = s => System.Diagnostics.Debug.WriteLine(s); | |
// LINQ expressions below... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment