现在的位置: 首页 > 综合 > 正文

EFCodeFirst package 安装方法

2013年07月07日 ⁄ 综合 ⁄ 共 516字 ⁄ 字号 评论关闭
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)
PM > install-package -id EntityFramework
Successfully added 'EntityFramework ...

抱歉!评论已关闭.