Where Does Entity Framework 6 Get Connection String For Migrations?

ef-code-first entity-framework entity-framework-6 visual-studio

Accepted Answer

I've found via some of my own testing that the configuration used during anupdate-database The project designated for startup is called.

In my situation, I put up a console programme to do some batch processing, and while I was debugging through the seed, I saw the same behaviour as you had. What alters the active configuration is switching the start-up project.

2
3/8/2018 3:14:51 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow