Skip to content

Instantly share code, notes, and snippets.

@cmatskas
Last active August 29, 2015 14:21
Show Gist options
  • Save cmatskas/01cd516476b460cf4921 to your computer and use it in GitHub Desktop.
Save cmatskas/01cd516476b460cf4921 to your computer and use it in GitHub Desktop.
using (var context = new YourDbContext())
{
context.Database.Log = message => Trace.Write(message);
// rest of you code goes here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment