EF7:术语“ add-migration”未被识别为cmdlet的名称 [英] EF7: The term 'add-migration' is not recognized as the name of a cmdlet

查看:153
本文介绍了EF7:术语“ add-migration”未被识别为cmdlet的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在project.json中将框架版本设置为:dnx46。
还具有以下软件包:

I have framework version set to: dnx46 in project.json. Also have the following packages:

  "dependencies": {
    "EntityFramework.Commands": "7.0.0-rc1-final",
    "EntityFramework.Core": "7.0.0-rc1-final",
    "EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final",
    "Microsoft.AspNet.Identity.EntityFramework": "3.0.0-rc1-final"
  }

但是,当我开始运行enable-migrations命令时,会得到以下信息:

However when I got into running enable-migrations command I get the following:

术语 enable-migrations不会被识别为cmdlet

The term 'enable-migrations' is not recognized as the name of a cmdlet

有人知道我如何在最新的.NET中运行EF迁移吗?

Does anyone know how I get EF migrations running in latest .NET?

推荐答案

当前不支持直接进行EF迁移:

Currently EF migrations are not supported out of the box:

https://github.com/aspnet/EntityFramework/issues/4497

这篇关于EF7:术语“ add-migration”未被识别为cmdlet的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆