Skip to content

Instantly share code, notes, and snippets.

@AntMooreWebDev
Created November 3, 2016 14:36
Show Gist options
  • Save AntMooreWebDev/39cc8a50adcdfe87fcd0637817f47dcf to your computer and use it in GitHub Desktop.
Save AntMooreWebDev/39cc8a50adcdfe87fcd0637817f47dcf to your computer and use it in GitHub Desktop.
Throw this in the constructor of the configuration class for EF Code First migrations and the seed method can be debugged.
if (System.Diagnostics.Debugger.IsAttached == false)
{
System.Diagnostics.Debugger.Launch();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment