错误描述: 1 类型“System.Data.Entity.DbContext”在未被引用的程序集中定义。必须添加对程序集“EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”的引用。 D:\HF_Source\webapitest\test2\DFSoft.Plat.SQLServerDAL\BaseService\B_AgreementTypeDAL.cs 30 13 DFSoft.Plat.SQLServerDAL

解决办法:在另外一个库引用EF库时,另外一个库要引用 EntityFramework 即可。

例:Plat.DataAccess   库:EF 生成库

     Plat.DAL 引用 Plat.DataAccess 时,同时:Plat.DAL 要添加 EntityFramework(Version=5.0.0.0)即可。

相关文章:

  • 2021-09-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-24
  • 2021-10-03
  • 2022-12-23
  • 2021-08-06
猜你喜欢
  • 2021-07-28
  • 2021-12-27
  • 2022-12-23
  • 2022-01-31
  • 2021-12-31
  • 2022-12-23
相关资源
相似解决方案