EF-Migrationen error: could not load type 'System.Daten.Entität.Infrastruktur.DbContextInfo'

Ich bin mit ContosoUniversity Beispiel. Ich habe gerade verwendet Nuget herunterladen und installieren, code first-Migrationen Packung. Whe ich excecute update-database Befehl erzeugt einen Fehler . Gibt es etwas mehr zu tun, als die Installation von nuget-Paket?

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

Bearbeiten ,
Jetzt habe ich installiert ADO.NET Entity Framework 4.1 - Update 1 - und jetzt wirft es einen Fehler

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

Habe ich versucht das Szenario in microsoft-blog, aber nichts änderte sich. ( http://blogs.msdn.com/b/adonet/archive/2011/07/27/code-first-migrations-august-2011-ctp-released.aspx )

Schreibe einen Kommentar