1

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 ?

2
  • Did you install this: visualstudiogallery.msdn.microsoft.com/… ? Commented Jul 17, 2013 at 22:26
  • Still don't much understand code first, nice to have all your code in one place including database especially under source control. But other than that seems rather like a cute toy compared to Entity Framework model first. All kinds of handy things that you can do in seconds with Sql Server Management Studio, take learning new syntax and funky workarounds. Even updating database via migrations is fragile and at times. Commented Jul 18, 2013 at 4:54

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.