Created
November 3, 2015 15:02
-
-
Save AndriiTsok/aa5db01ba19564ced157 to your computer and use it in GitHub Desktop.
EF migrations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Now that you have a model, you can use migrations to create a database for you. | |
Open a command prompt (Windows Key + R, type cmd, click OK) | |
Use the cd command to navigate to the project directory | |
Run dnvm use 1.0.0-beta8 | |
Run dnx ef migrations add MyFirstMigration to scaffold a migration to create the initial set of tables for your model. | |
Run dnx ef database update to apply the new migration to the database. Because your database doesn’t exist yet, it will be created for you before the migration is applied. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FOr azure SQL, open 1433 port