Browse Source

Add documentation for Db Migrator in Single Layer Web Application template

pull/21728/head
ahmetfarukulu 1 year ago
parent
commit
1db69b915a
  1. 21
      docs/en/solution-templates/single-layer-web-application/db-migrator.md
  2. BIN
      docs/en/solution-templates/single-layer-web-application/images/single-layer-db-migrator.png

21
docs/en/solution-templates/single-layer-web-application/db-migrator.md

@ -0,0 +1,21 @@
# Single Layer Solution: Db Migrator
````json
//[doc-nav]
{
"Previous": {
"Name": "Web Applications",
"Path": "solution-templates/single-layer-web-application/web-applications"
},
"Next": {
"Name": "Built-In Features",
"Path": "solution-templates/single-layer-web-application/built-in-features"
}
}
````
Unlike the Layered solution template, the Single Layer solution template does not include a separate database migrator project. Instead, the main application project handles database migration and seed data operations. The `*.DbMigrator` project is excluded from this template. To manage database migrations and seed data, you can use the `migrate-database.ps1` script in the root directory or run the `dotnet run --migrate-database` command from the main application project directory.
![Single Layer Solution: Db Migrator](images/single-layer-db-migrator.png)
After the migration completes, a message will appear in the console. You can verify the success of the migration by checking the database.

BIN
docs/en/solution-templates/single-layer-web-application/images/single-layer-db-migrator.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Loading…
Cancel
Save