Evey sample code for entity framework wihch I find on the net are telling that there must be a method “ApplyChanges” which I can use to persist SelfTracking objects. But my ObjectContext and EntitySets just have these methods:
- ApplyCurrentValues
- ApplyOriginalValues
Am I using EF4? Is there any minor versions of EF4?
The MSDN entry here explains that ApplyChanges is an extension method generated by the ADO.NET Self-Tracking Entity Generator in Visual Studio 2010 and later. If you’re not generating those methods, you won’t see them, even if you are using EF 4/.NET 4.0.