实体框架已安装,但无法访问 [英] Entity Framework is installed, but is not accessible

查看:251
本文介绍了实体框架已安装,但无法访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在类库(通用窗口)中安装了来自NuGet的 Entity Framework 6.1.3 ,但我似乎无法访问任何Entity Framework的命名空间。



我尝试了 System.Data.Entity。,这没有回避感。



此外,我尝试简单地键入 DbContext 类名,并尝试解析名称,没有运气。

$

解决方案

重建,清理,重新启动Visual Studio似乎没有帮助。看起来我已经解决了这个问题。



正如Brendan Green所说,Entity Framework 6不支持 PCL(便携式类库)。但是,下一个版本 Entity Framework 7 会。现在可以在 GitHub 上使用。



另请参阅通用Windows平台入门


I have installed Entity Framework 6.1.3 from NuGet in a Class Library (Universal Windows), however I can't seem to access any of Entity Framework's namespaces.

I've tried System.Data.Entity. which brings back no intellisense.

Also, I've tried simply typing the DbContext class name, and attempted to resolve the name with no luck.

Rebuilding, cleaning, restarting Visual Studio doesn't seem to help either.

解决方案

Looks like I've solved the issue.

As Brendan Green mentioned, Entity Framework 6 does not support PCL (Portable Class Library). However the next version, Entity Framework 7 will. This is available on GitHub right now.

Also see Getting Started on Universal Windows Platform.

这篇关于实体框架已安装,但无法访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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