如何从安装的NuGet 5.0的EntityFramework(及其他旧版本)? [英] How to install EntityFramework 5.0 (and other older versions) from NuGet?

查看:379
本文介绍了如何从安装的NuGet 5.0的EntityFramework(及其他旧版本)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装EF 5.0到.DAL,现在我想EF 5.0来自的NuGet安装到.BLL

I installed EF 5.0 into the .DAL, now I want to install EF 5.0 into .BLL from Nuget

但是默认的联机的NuGet包总是想出了6.0,与5.0 EF我在DAL使用一起使用时,它给出错误。

But the default online Nuget package always comes up with 6.0, which gives error when used together with the 5.0 EF I use in DAL.

我在哪里可以安装5.0版本的EntityFramework进入我的NuGet包?

Where can I install the 5.0 version of EntityFramework into my Nuget packages??

推荐答案

查看 - >其他窗口 - >软件包管理器控制台,然后运行
安装包的EntityFramework -version 5.0.0.0

View -> Other windows -> Package Manager Console then run install-package entityframework -version 5.0.0.0.

添加 -project< project.name方式> 如果你想在一个特定的项目进行安装

Add -project <project.name> if you want to install it in a specific project.

这篇关于如何从安装的NuGet 5.0的EntityFramework(及其他旧版本)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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