如何从Package Manager控制台运行种子方法时使用断点

时间:2013-11-05 12:51:18

标签: breakpoints

在Package Manager控制台中运行 Update-Database -Verbose 时,是否有任何选项可以放置断点然后开始调试?

1 个答案:

答案 0 :(得分:0)

if(System.Diagnostics.Debugger.IsAttached == false)   System.Diagnostics.Debugger.Launch();

来自Debug code-first Entity Framework migration codes