disasterkid
disasterkid

Reputation: 7278

EntityFramework library not recognized

My entrance to the EntityFramework world was not welcome. Here is what I am doing to start using the library.

I clean my App.config and clean my solution, add EntityFramework's NuGet package via Manage NuGet Packages and then rebuild my solution. But I still cannot use the library I added in my project:

enter image description here

What am I doing wrong?

Upvotes: 0

Views: 98

Answers (2)

jjj
jjj

Reputation: 4997

It should be using System.Data.Entity; and not using EntityFramework;.

Upvotes: 2

Loetn
Loetn

Reputation: 4040

The namespace for Entity Framework related classes is not EntityFramework, but System.Data.Entity and underlying namespaces.

So use using System.Data.Entity instead.

Upvotes: 7

Related Questions