References for DBContext, DBSet<> in Entity Framework

前端 未结 5 1867
长发绾君心
长发绾君心 2021-02-12 11:11

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 t

5条回答
  •  眼角桃花
    2021-02-12 11:30

    You can use the Library Package Manager if you have it (it installs automatically with MVC 3.0).

    From within your project in Visual Studio 2010, go to

    Tools > Library Package Manager > Package Manager Console
    

    From within your project in Visual Studio 2013, go to

    Tools > NuGet Package Manager > Package Manager Console
    

    In the console, after the PM> prompt, type

    install-package entityframework
    

    This will install the package and add the EntityFramework reference to your project.

提交回复
热议问题