Skip to content

Commit

Permalink
#2761 Documentation Update Required for EF Migration Steps
Browse files Browse the repository at this point in the history
  • Loading branch information
E068097 committed Nov 29, 2024
1 parent 6ecc94c commit 4a03da6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docs/dev-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,16 +346,18 @@ Follow the next steps to create EF migration:
dotnet ef migrations add "<nameofyourmigration>" -p ..\IoTHub.Portal.Postgres\ -v -- --DbProvider PostgreSQL
```

1. Execute this command for MySQL provider

```console
dotnet ef migrations add "<nameofyourmigration>" -p ..\IoTHub.Portal.MySql\ -v -- --DbProvider MySQL
```

1. Open the created migration and follow the following steps:

1. Move the using directive into the namespace directive

1. Add "_ =" before each statement of the Up and Down methods

1. Add the CGI copyright to the top of the file

1. Execute this command for MySQL provider

```console
dotnet ef migrations add "<nameofyourmigration>" -p ..\IoTHub.Portal.MySql\ -v -- --DbProvider MySQL
```

1. Open the newly created migration for MySQL and repeat step 3

0 comments on commit 4a03da6

Please sign in to comment.