Address: Https://www.aspnetzero.com/Documents/Development-Guide-Core
1. Recovering a Database
MIGRATOR CONSOLE Application
AspNet Zero includes a tool, Migrator.exe, to easily migrate your databases. You can run the application to create/migrate host and tenant databases.
This application gets the host connection string from it ' s own Appsettings.json file. It'll be same as in the Appsettings.json in. Web Project at the beggining. Be sure, the connection string in config file are the database you want. After getting host connection sring, it first creates the host database or apply migrations if it does already exists. Then it gets connection strings of tenant databases and runs migrations for those databases. It skips a tenant if it has not a dedicated database or it's database is already migrated for another tenant (for shared D Atabases between multiple tenants).
Can use this tool on development or on product environment to migrate databases on deployment, instead of Entityframew Ork ' s own Migrate.exe (which requires some configuration and can only work for single database in one run).
ASP. NET ZERO Core Application Learning Notes