Using NuGet to Install EFCodeFirst
2011-02-05 22:50
351 查看
We'll start by using the NuGet package manager (automatically installed by ASP.NET MVC 3) to add the EFCodeFirst library to the
Warning: You must stop debugging before you access the NuGet package manager. If you access NuGet while you are still debugging, you'll get the error message and the Add Library Package Reference... menu item will disappear. You must then exit Visual Web Developer and restart the project.
From the Tools menu, select Library Package Manager and then Add Library Package Reference.
The Add Library Package Reference dialog box appears.
By default, All is selected in the left pane. Because no packages are installed, the center pane shows No items found. Click Online in the left pane.
NuGet queries the server for all available packages.
There are hundreds of packages available. We're interested in the EFCodeFirst package. In the search box, enter "EFCode". In the search results, select the EFCodeFirst package and click the Install button.
After the package installs, click Close. The installation process downloaded the EFCodeFirst library and added it to the
MvcMovieproject. This library lets us use the code-first approach.
Warning: You must stop debugging before you access the NuGet package manager. If you access NuGet while you are still debugging, you'll get the error message and the Add Library Package Reference... menu item will disappear. You must then exit Visual Web Developer and restart the project.
From the Tools menu, select Library Package Manager and then Add Library Package Reference.
The Add Library Package Reference dialog box appears.
By default, All is selected in the left pane. Because no packages are installed, the center pane shows No items found. Click Online in the left pane.
NuGet queries the server for all available packages.
There are hundreds of packages available. We're interested in the EFCodeFirst package. In the search box, enter "EFCode". In the search results, select the EFCodeFirst package and click the Install button.
After the package installs, click Close. The installation process downloaded the EFCodeFirst library and added it to the
MvcMovieproject. The EFCodeFirst library is contained in the EntityFramework assembly.
相关文章推荐
- vs2010 利用NuGet来安装EFCodeFirst
- [转]Using Entity Framework (EF) Code-First Migrations in nopCommerce for Fast Customizations
- using-ef-code-first-with-an-existing-database
- EFCodeFirst使用Nuget更新数据库
- efcodefirst安装不了,This package (or one of its dependencies) contains PowerShell scripts and needs to
- NuGet来安装EFCodeFirst 提示 PowerShell的错误。
- MVC3 EF Code First 模式下的数据迁移
- EF Code First 学习笔记:约定配置(转)
- EF Code First 数据库迁移Migration剖析
- EF Power Tools由数据库逆向Code First
- EF Code First Migrations数据库迁移
- Mount a remote file system using sshfs and fuse - How to install sshfs
- EF Code First学习笔记:数据库创建
- How to install Database using commandline prompt
- [C#/.NET]Entity Framework(EF) Code First 多对多关系的实体增,删,改,查操作全程详细示例
- VS2010安装EFCodeFirst后无法显示ADO.NET DbContext Generator项目的解决方案
- EF Code First 学习笔记:关系
- EF Code First Migrations数据库迁移
- EM 12c R2: How to Install Enterprise Manager Cloud Control 12.1.0.2 using GUI Mode [ID 1488154.1]
- pip install xx时候报错:Fatal error in launcher: Unable to create process using