Entity Framework Code First Migrations

asp.net-mvc-4 c# ef-migrations entity-framework-6

Question

when the following command is run

pm> Update-Database

obtaining the next mistake

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'System.Data.Entity.SqlServer.SqlProviderServices' threw an exception. ---> System.TypeLoadException: Method 'ExecuteAsync' in type 'System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy' from assembly 'EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' does not have an implementation.

1
4
12/11/2013 8:03:53 AM

Popular Answer

Your EF and project versions are not identical. Your Entity Framework is version 6 of.Net 4, but your project uses.Net 4.5, which requires the use of EF for.Net 4.5.

4
7/7/2015 10:58:48 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow