Migration Console Application
The AspNet Zero contains a tool Migrator.exe for easy migration of databases. You can run this application to create/migrate host and tenant databases.
the application Gets the host connection string from its own Appsettings.json file . It will be at the beginning. The same in Appsettings.json in the Web project. Make sure that the connection string in the configuration file is the database you want. after getting the host connection , first create the host database or apply the migration (if it already exists). It then obtains the connection string for the tenant database and runs the migration for those databases. If there is no dedicated database, or if its database has been migrated to another tenant (for a shared database between multiple tenants), it skips the tenant.
You can use this tool in a development or production environment to migrate databases at deployment time, rather than entityframework your own Migrate.exe (requires some configuration and can only run on a single database in one run).
ASP. NET Zero--migration Console Application