-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
28 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,19 @@ | ||
# Generate Migrations | ||
|
||
## Package manager | ||
Add-Migration Initial -Context VirtoCommerce.CoreModule.Data.Repositories.CoreDbContext -Verbose -OutputDir Migrations -Project VirtoCommerce.CoreModule.Data.MySql -StartupProject VirtoCommerce.CoreModule.Data.MySql -Debug | ||
|
||
|
||
|
||
### Entity Framework Core Commands | ||
``` | ||
dotnet tool install --global dotnet-ef --version 6.* | ||
## Install CLI tools for Entity Framework Core | ||
```cmd | ||
dotnet tool install --global dotnet-ef --version 8.0.0 | ||
``` | ||
|
||
**Generate Migrations** | ||
or update | ||
|
||
```cmd | ||
dotnet tool update --global dotnet-ef --version 8.0.0 | ||
``` | ||
dotnet ef migrations add Initial -- "{connection string}" | ||
dotnet ef migrations add Update1 -- "{connection string}" | ||
dotnet ef migrations add Update2 -- "{connection string}" | ||
``` | ||
|
||
etc.. | ||
|
||
**Apply Migrations** | ||
## Add Migration | ||
Select Data.<Provider> folder and run following command for each provider: | ||
|
||
`dotnet ef database update -- "{connection string}"` | ||
```cmd | ||
dotnet ef migrations add <migration-name> | ||
``` |
147 changes: 0 additions & 147 deletions
147
...ommerce.CoreModule.Data.PostgreSql/Migrations/20240126111303_UpdateRowVersion.Designer.cs
This file was deleted.
Oops, something went wrong.
50 changes: 0 additions & 50 deletions
50
src/VirtoCommerce.CoreModule.Data.PostgreSql/Migrations/20240126111303_UpdateRowVersion.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,19 @@ | ||
# Generate Migrations | ||
|
||
## Package manager | ||
Add-Migration Initial -Context VirtoCommerce.CoreModule.Data.Repositories.CoreDbContext -Verbose -OutputDir Migrations -Project VirtoCommerce.CoreModule.Data.SqlServer -StartupProject VirtoCommerce.CoreModule.Data.SqlServer -Debug | ||
|
||
|
||
|
||
### Entity Framework Core Commands | ||
``` | ||
dotnet tool install --global dotnet-ef --version 6.* | ||
## Install CLI tools for Entity Framework Core | ||
```cmd | ||
dotnet tool install --global dotnet-ef --version 8.0.0 | ||
``` | ||
|
||
**Generate Migrations** | ||
or update | ||
|
||
``` | ||
dotnet ef migrations add Initial -- "{connection string}" | ||
dotnet ef migrations add Update1 -- "{connection string}" | ||
dotnet ef migrations add Update2 -- "{connection string}" | ||
```cmd | ||
dotnet tool update --global dotnet-ef --version 8.0.0 | ||
``` | ||
|
||
etc.. | ||
## Add Migration | ||
Select Data.<Provider> folder and run following command for each provider: | ||
|
||
**Apply Migrations** | ||
|
||
`dotnet ef database update -- "{connection string}"` | ||
```cmd | ||
dotnet ef migrations add <migration-name> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters