I want to get the latest version of database and insert some rows into database for testing every time the project runs. Is there any way to upgrade the database with the latest version of migrations without input command in package manager console?
I found this article,
EF4.3 Configuration File Settings
I know I can let the upgrade to the latest version by configure the context element of the file, but I don’t know how to let the upgrade run every time when the project is running without input command.
Anyone has any ideas?
The equivalent of mentioned configuration is calling this code at the bootstrap of your application: