Entity Framework is installed, but is not accessib

2019-07-15 14:11发布

问题:

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.