为了回应 Slauma 对我关于在 Windows XP 上运行使用 EF 的应用程序的问题的回答,我 将我的应用程序从 Entity Framework 5.0 转换回使用 Entity Framework 5.0 和目标框架 .NET 4.0(也称为 Entity Framework 4.4)
但是我遇到以下错误;
System.Data.Entity.DbSet<MyEntity> does not contain a definition for AddOrUpdate
and no extension method of a type System.Data.Entity.DbSet<MyEntity> accepting a
first argument of type System.Data.Entity.DbSet<MyEntity> could be found.
(Are you missing a using directive or assembly reference )
我曾尝试搜索此错误消息的片段,但没有取得多大成功。奇怪的是,这个 Microsoft 链接中甚至没有提到 4.4 EF4.4 甚至没有 SO 标签