I am using ContosoUniversity example. I have just used Nuget to download and install code first migrations pakage. Whe I excecute update-database
command it throws an error . Is there anything to do more than installing nuget package?
Update-Database : Could not load type 'System.Data.Entity.Infrastructure.DbContextInfo' from assembly 'EntityFramework, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. At line:1 char:16 + update-database <<<< + CategoryInfo : NotSpecified: (:) [Update-Database], TypeLoadException + FullyQualifiedErrorId : System.TypeLoadException,System.Data.Entity.Migrations.Commands.MigrateCommand
Edit , Now I have installed ADO.NET Entity Framework 4.1 - Update 1
and now it throws an error
Update-Database : The project 'ContosoUniversity' does not contain or reference any contexts. At line:1 char:16 + update-database <<<< + CategoryInfo : NotSpecified: (:) [Update-Database], InvalidOperationException + FullyQualifiedErrorId : System.InvalidOperationException,System.Data.Entity.Migrations.Commands.MigrateCommand
I have tried the scenario in microsoft blog but nothing changed. ( http://blogs.msdn.com/b/adonet/archive/2011/07/27/code-first-migrations-august-2011-ctp-released.aspx )