References for DBContext, DBSet<> in Entity Fra

2019-03-22 19:23发布

I am trying to use ADO.Net Codefirst feature of latest Entity Framework 4.0. As part of that I have installed Entity Framework CTP 4 from Microsft and using Scott's tutorial to create the model first. Inside the tutorial DBContext and DBSet<> is specified. Could some tell what is the reference to be used in order to access this class.

I have used the following references however nothing happens for DBContext and DBSet<>

  • System.Data.Entity
  • System.Data.Entity.Design

7条回答
干净又极端
2楼-- · 2019-03-22 20:12

if you are using .NET 3.5 then change your target framework to .NET 4.0

查看更多
登录 后发表回答