ho installato EntityFramework.SqlMigrations NuGet Package e ottengo questo errore. ha funzionato per me in passato e in qualche modo, ora non funziona.Errore database di aggiornamento - Pacchetto NuGet (EntityFramework.SqlMigrations)
PM> update-database
The term 'update-database' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:1 char:16
+ update-database <<<<
+ CategoryInfo : ObjectNotFound: (update-database:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
solo il riavvio ha funzionato per me, quindi provate sicuramente il primo – Quesi
+1, il riavvio ha fatto il trucco, quindi non è necessario 'Update-Package EntityFramework'. –
Penso che le persone stiano vivendo due diversi problemi che si manifestano allo stesso modo. Alcune persone hanno effettivamente bisogno di forzare un aggiornamento del pacchetto (soluzioni mal gestite estratte dal controllo del codice sorgente con artefatti EF persistenti, ad esempio) e altre stanno riscontrando un bug in cui la console PM non avvia correttamente i moduli/cmdlet EF. –