MVC adds fields using EF Code First Data migration

Source: Internet
Author: User

Pm> add-migration 20161109
Scaffolding is being built for migrating "20161109".
The designer code for this migration file contains a snapshot of the current Code first model. This snapshot is used to calculate changes to the model the next time the migration scaffolding is built. If you make other changes to the model that you want to include in this migration, you can re-build the scaffolding by running Add-migration 20161109 again.
Pm> Update-database
Specify the "-verbose" flag to view the SQL statements applied to the target database.
An explicit migration is being applied: [201611090641341_20161109].
An explicit migration is being applied: 201611090641341_20161109.
The Seed method is running.
Pm>

MVC adds fields using EF Code First Data migration

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.