quarta-feira, 29 de outubro de 2014

Dicas do EntityFramework

  1. Para recriar o arquivo do banco de dados execute no Package Manager Console (Tools –> Library Package Manager –> Package Manager Console):
# sqllocaldb.exe stop v11.0
# sqllocaldb.exe delete v11.0
# Update-Database
Outra forma:
# Update-Database -TargetMigration: $InitialDatabase
# Update-Database

  1. Comand Reference

  1. Para ajuda:
# get-help Get-Migrations -examples
# get-help Get-Migrations -detailed

# get-help Get-Migrations -full

Nenhum comentário:

Postar um comentário