forked from phongnguyend/Practical.CleanArchitecture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPowerShell.txt
21 lines (16 loc) · 857 Bytes
/
PowerShell.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
https://docs.microsoft.com/en-us/ef/core/cli/powershell
Add-Migration -Context AdsDbContext Init -OutputDir Migrations/AdsDb
Add-Migration -Context ConfigurationDbContext Init -OutputDir Migrations/ConfigurationDb
Add-Migration -Context PersistedGrantDbContext Init -OutputDir Migrations/PersistedGrantDb
Remove-Migration -Context AdsDbContext
Remove-Migration -Context AdsDbContext -Force
Remove-Migration -Context MiniProfilerDbContext
Update-Database -Context AdsDbContext
Update-Database -Context ConfigurationDbContext
Update-Database -Context PersistedGrantDbContext
Script-DbContext -Context AdsDbContext
Script-DbContext -Context ConfigurationDbContext
Script-DbContext -Context PersistedGrantDbContext
Script-Migration -Context AdsDbContext
Script-Migration -Context ConfigurationDbContext
Script-Migration -Context PersistedGrantDbContext