我想在visual studio2010中添加实体框架的引用到我的mvc4应用程序
问题描述:
Iam在visual studio中使用MVC4应用程序,而我想将实体框架工作的引用添加到我的mvc应用程序中,但即使我尝试使用了nutgetpackages选项也没有...
Iam using MVC4 application in visual studio while I want to add reference of entity frame work to my mvc application but it is not coming even I tried used nutgetpackages option too...
答
你可以尝试工具菜单LIbrary包管理器 - >包管理器控制台 - >
PM> install-package EntityFrameWork
之后会自动添加EF,否则你可以搜索Package文件夹和EntityFramework文件夹你可以在你的应用程序中添加dll参考。
如果你需要任何版本的框架只需要支付
PM> install-package EntityFrameWork -version版本号
U can try to tools menu LIbrary Package manager ->package manager console->
PM>install-package EntityFrameWork
after that automatically added the EF otherwise u can search the Package folder and EntityFramework folder u can add the dll reference in you application.
if you need any version of framework just put
PM>install-package EntityFrameWork -version Version number