您的位置:首页 > 其它

EFCodeFirst package 安装方法

2011-08-10 17:09 495 查看
I tried to install EntityFramework 4.1 on VS 2010 through NuGet. I searched and found the package through "Tools > Library Package Manager > Add
Library Package Reference" tool and I got this error: "This package (or one of its dependencies) contains powershell scripts and needs to be installed from the package manager console.". This is what I did to fix it:

Tools > Library Package Manager > Package Manager Console

PM > get-package -remote -filter entityframework

(got some results including EntityFramework 4.1.10311.0)

install-package -id EntityFramework

PM > install-package -id EntityFramework -Version 4.1.10331.0

Successfully added 'EntityFramework ...
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐