首页 新闻 会员 周边

codefirst 启用迁移问题

0
悬赏园豆:5 [待解决问题]

新建的项目是在Asp.net Core基础上的项目,在程序包管理器控制台中-启用迁移,却报如下错误,请问是什么情况?

PM> Add-Migration Init

Startup project 'src\NetMvcCore.Web' is an ASP.NET Core or .NET Core project for Visual Studio 2015. This version of the Entity Framework Core Package Manager Console Tools doesn't support these types of projects.

bluefirework的主页 bluefirework | 初学一级 | 园豆:18
提问于:2017-05-16 16:47
< >
分享
所有回答(2)
0

这不是写的挺清楚的..

 

This version of the Entity Framework Core Package Manager Console Tools doesn't support these types of projects.

百度翻译->这个版本的实体框架核心包管理器控制台工具不支持这些类型的项目。

吴瑞祥 | 园豆:29449 (高人七级) | 2017-05-16 16:59

意思明白啊,关键是怎么处理

支持(0) 反对(0) bluefirework | 园豆:18 (初学一级) | 2017-05-16 17:09

@bluefirework: efcore的迁移和ef6是不一样的.

看看楼下的文档吧.

http://stackoverflow.com/questions/43068552/this-version-of-the-entity-framework-core-package-manager-console-tools-doesnt/43106651#43106651

用的命令都是不一样的.你用的那个是ef6的迁移方式.

支持(0) 反对(0) 吴瑞祥 | 园豆:29449 (高人七级) | 2017-05-16 17:11
0
dudu | 园豆:31003 (高人七级) | 2017-05-16 17:07
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册