[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 249
  • Last Modified:

System.Data.Entity Issues

I created a new MVC3 application in Visual Studio .NET and added, to the References, System.Data.Entity, and included "using System.Data.Entity" in a .cs file.

However, when I try to use properties/methods/etc of System.Data.Entity, nothing exists. For example, DbSet<>. When I type in System.Data.Entity. intellisense brings up nothing.

System.Data.Entity is being referenced and used in another application and it works fine there.

I've tried adding  <add namespace="System.Data.Entity"/> to the Web.config file as well as <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> but that didn't help.

I've tried deleting the reference and readding it and that didn't work.

Any thoughts?
0
infotechelg
Asked:
infotechelg
  • 4
1 Solution
 
infotechelgAuthor Commented:
Anyone??
0
 
Kumaraswamy RCommented:
HI

In the include a reference
 C:\Program Files\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.Data.Entity.dll

0
 
infotechelgAuthor Commented:
That's already where the System.Data.Entity is pointing to:

C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.Entity.dll
0
 
infotechelgAuthor Commented:
Figured it out. Needed to install the ReferencePackage "EntityFramework".
0
 
infotechelgAuthor Commented:
Figured it out on my own.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now