简体   繁体   中英

ASP NET Code First Existing database - no reverse engineering

I created a new database by Code First and enabled migrations in order to update the database, but the database came under some modifications and I would like to update my models using the Reverse Engineering approach.

I have searched online and I should right click on the project and from Entity Framework dropdown item, to select the Reverse Engineering option. The only issue is that when I right click on the project, there is no Entity Framework item.

Why is this happening ?

You should install Entity Framework Power Tools extension. There is a list of new features of this tool set:

Summary of Commands

As there is mentioned: Reverse Engineer Code First - Generates derived DbContext class, POCO classes, and Code First mapping classes for an existing database.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM