Can one set a breakpoint in EF code first migrations seed method?

前端 未结 2 1043
迷失自我
迷失自我 2020-12-31 02:17

I am having trouble with something in the Seed method in the Configure.cs for my entity framework 6 code-first migration process. I am running the

2条回答
  •  北荒
    北荒 (楼主)
    2020-12-31 02:44

    Update-Database runs out of your debugging session so you cannot set a breakpoint. You'll want to run your Seed method elsewhere from within your code, like a dummy method, that you can kick off from within your app.

提交回复
热议问题