3

I'm new to EF and MVC3. I'm running through the following MVC3 SQL Migration tutorial (link below) and when I run the following command from a cmd window with VS2010 I get the following error:

update-database

Command "update" is not valid

What am I missing here? Thx!

Tutorial Link:

http://www.hanselman.com/blog/EntityFrameworkCodeFirstMigrationsAlphaNuGetPackageOfTheWeek10.aspx

1 Answer 1

7

You need to execute it from package manager console not from the command prompt.In VS 2010 go to

View -> Other Windows -> package manager console

and try executing the command.

And also you need to use correct version of entity framework (Entity Framework 4.1 - Update 1). Try installing this http://www.microsoft.com/download/en/details.aspx?id=26825

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.