Skip to content

Instantly share code, notes, and snippets.

@rahuldass
Last active September 6, 2015 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahuldass/7961d62187d06120cd70 to your computer and use it in GitHub Desktop.
Save rahuldass/7961d62187d06120cd70 to your computer and use it in GitHub Desktop.
Code First Data Migrations Commands #entity-framework

###Code First Data Migrations Commands

From the Tools menu, click Library Package Manager and then Package Manager Console then choose default project EF.Data in it, which means always choose that project where you want to install a package.

1. Enable-Migrations
2. Add-Migration database name
3. Update-Database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment