首页新闻找找看学习计划

EF codefirst数据迁移执行命令报错,那位高手帮忙看一下?谢谢!

-1
悬赏园豆:100 [已关闭问题] 关闭于 2015-07-14 09:20

EF版本6.1.3,VS2013,MVC5,数据库localdb

PM> Enable-Migrations
System.Runtime.Serialization.SerializationException: Type is not resolved for member 'System.Data.Entity.Migrations.Design.ToolingFacade+GetContextTypeRunner,EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
在 System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
在 System.Data.Entity.Migrations.Design.ToolingFacade.Run(BaseRunner runner)
在 System.Data.Entity.Migrations.Design.ToolingFacade.GetContextType(String contextTypeName)
在 System.Data.Entity.Migrations.EnableMigrationsCommand.FindContextToEnable(String contextTypeName)
在 System.Data.Entity.Migrations.EnableMigrationsCommand.<>c__DisplayClass2.<.ctor>b__0()
在 System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command)
Type is not resolved for member 'System.Data.Entity.Migrations.Design.ToolingFacade+GetContextTypeRunner,EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

老S的主页 老S | 初学一级 | 园豆:11
提问于:2015-07-13 18:43
< >
分享
所有回答(1)
0

已解决,诶,搞了好几天,郁闷。

老S | 园豆:11 (初学一级) | 2015-07-14 09:20
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册