通过Package Manager Console 向VS2010安装 EFCodeFirst

尝试用VS2010--工具--Library Package Manager--Add Library Package Reference的online搜索 EFCodeFirst,
再找到的结果中,点选该Package的Install,
却提示错误:
"This package (or one of its dependencies) contains powershell scripts and needs to be installed from the package manager console."
 
根据提示改用Package Manager Console来安装,
打开VS2010--工具--Library Package Manager--Package Manager Console,

 

PM >  get -package -remote -filter EFCodeFirst 
Id                                                            Version                                                       Description                                                 
--                                                            -------                                                       -----------                                                 
DynamicData.EFCodeFirstProvider                                0.1. 0.0                                                       Supports  using Dynamic Data with EF Code First models       
DynamicData.EFCodeFirstProvider                                0.1. 0.1                                                       Supports  using Dynamic Data with EF Code First models       
DynamicData.EFCodeFirstProvider                                0.1. 0.2                                                       Supports  using Dynamic Data with EF Code First models       
DynamicData.EFCodeFirstProvider                                0.2                                                           Supports  using Dynamic Data with EF Code First models       
EFCodeFirst                                                    0.8                                                           CTP5 of the Code First Programming Model and Productivity...
EFCodeFirst                                                    1.0                                                           Legacy package, Code First  is now included  in the  ' Entity...
EFCodeFirst                                                    1.1                                                           Legacy package, Code First  is now included  in the  ' Entity...
EFCodeFirst                                                    1.1. 0.1                                                       Legacy package, Code First  is now included  in the  ' Entity...
EFCodeFirst.CreateTablesOnly                                   1.0. 0                                                         Adds a IDatabaseInitializer implementation  for EF Code Fi...
EFCodeFirst.CreateTablesOnly                                   1.0. 1                                                         Adds a IDatabaseInitializer implementation  for EF Code Fi...
EFCodeFirst.CreateTablesOnly                                   1.0. 2                                                         Adds a IDatabaseInitializer implementation  for EF Code Fi...
EFCodeFirst.Sample                                             0.8                                                           This sample blog model demonstrates the use of the Entity...
EFCodeFirst.SqlServerCompact                                   0.8. 8482                                                      Allows SQL Server Compact  4.0 to be used with Entity Fram...
EFCodeFirst.SqlServerCompact                                   0.8. 8482.1                                                    Allows SQL Server Compact  4.0 to be used with Entity Fram...
FsEfCodeFirst.Linq                                             0.1. 0.0                                                       FsEfCodeFirst.Linq provides a quick way to create EFCodeF...
FSRepository                                                   0.4                                                           FSRepository provides a quick way of creating a repositor...
FSRepository                                                   0.5. 0.0                                                       FSRepository provides a quick way of creating a repositor...

 
PM >  install-package -id EFCodeFirst

已成功安装“EFCodeFirst  1.1. 0.1
已成功将“EFCodeFirst  1.1. 0.1”添加到 ...


 

转载于:https://www.cnblogs.com/shunyao8210/archive/2012/03/07/EFCodeFirst.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值