ASP. NET ZERO Core Application Learning Notes

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.