针对Slauma的回答我的问题about running applications that use EF on Windows XP我5.0转换我的应用程序恢复从实体框架使用实体框架5.0和目标框架.NET 4.0(也称为实体框架4.4)如何在实体框架4.4中实现DBSet.AddOrUpdate?
但是我遇到下面的错误;
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)
我试过在这个错误消息的片段上搜索,但没有太大的成功。 奇怪的是4.4甚至没有提及in this Microsoft link甚至没有对EF4.4