Entity Framework is installed, but is not accessible

左心房为你撑大大i 提交于 2019-12-24 03:55:17

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/32629144/entity-framework-is-installed-but-is-not-accessible

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!