How to run Visual Studio 2017 Package Manager commands through PowerShell or the command line?
I am using Visual studio 2017 for Entity Framework - Database migration, The following command is run on Package Manager console of Visual Studio:
- Enable-Migrations - ContextTypeName Database.TemplateDbContext
- add-migration InitialCreate
- Update-Database - Script -SourceMigration: $InitialDatabase (To generate migration script)
- Update-Database - Verbose (To update the database)
The above script is working fine, but now I'm working on automation of this database migration without using Visual Studio Package Manager. Is there any method to call these commands from either the command prompt or from PowerShell scripts?