Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 732 Bytes

migrations.md

File metadata and controls

17 lines (9 loc) · 732 Bytes

Add Migration

Add-Migration -Name NameOfTheMigration -Context NameOfTheContext -Project ProjectWithContext -StartupProject ProjectWhereContextIsRegisteredInDIContainer -Verbose

Get-Help Add-Migration -detailed

Remove Migration

Remove-Migration -Context NameOfTheContext -Project ProjectWithContext -StartupProject ProjectWhereContextIsRegisteredInDIContainer -Verbose

Get-Help Remove-Migration -detailed

Script Migration

Script-Migration -From FromMigrationNotIncluded -Idempotent -Context NameOfTheContext -Project ProjectWithContext -StartupProject ProjectWhereContextIsRegisteredInDIContainer -Verbose

Get-Help Script-Migration -detailed