简体   繁体   中英

Compiler errors: DbContext (and) DbSet not found

Of course, the project references System.Data.Entity and the source is using System.Data.Entity. Also, I tried to install the latest version from the nuget console, as follow:

PM> Install-Package EntityFramework -Version 6.1.3

Installing 'EntityFramework 6.1.3'. Successfully installed 'EntityFramework 6.1.3'. Desktop.Client already has a reference to 'EntityFramework 6.1.3'.

So is, I´m referencing the latest version.

What´s going? Could someone help?

TIA

在此处输入图片说明 1. Open our Project

  1. Go To SolutionExplorer->refrences

  2. Select EntityFarmework References Right click Remove references

  3. References right click Manage NuGet Packages

  4. select EntityFrmawork Clik To Install

  5. added Latest Version EntityFramework

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM