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

查看:20
本文介绍了EF7:术语“添加迁移"未被识别为 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:

术语启用迁移"未被识别为 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:术语“添加迁移"未被识别为 cmdlet 的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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