System.Runtime.Serialization.SerializationException:

时间:2015-08-23 08:15:28

标签: c# asp.net-mvc entity-framework

在实现实体框架代码迁移的第一种方法时,我得到了下面提到的错误。有什么问题?请帮帮我。

  

System.Runtime.Serialization.SerializationException:Type不是   为会员解决   ' System.Data.Entity.Migrations.Design.ToolingFacade + GetContextTypeRunner,的EntityFramework,   Version = 6.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089'。
  在System.AppDomain.DoCallBack(CrossAppDomainDelegate   callBackDelegate)at   System.Data.Entity.Migrations.Design.ToolingFacade.Run(跑垒员   跑者)   System.Data.Entity.Migrations.Design.ToolingFacade.GetContextType(字符串   contextTypeName)at   System.Data.Entity.Migrations.EnableMigrationsCommand.FindContextToEnable(字符串   contextTypeName)at   System.Data.Entity.Migrations.EnableMigrationsCommand<> c__DisplayClass2< .ctor> b__0()   在   System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(动作   command)未解析成员的类型   ' System.Data.Entity.Migrations.Design.ToolingFacade + GetContextTypeRunner,的EntityFramework,   Version = 6.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089'。