I am using the Entity Framework (first time) in a SQL 2005 database to migrate data and found this very strange behavior ...
So far, I have never had to call the AddObject method to save new records. SaveChanges always did the trick, so I decided that the entity constructor always binds the new object to the data context.
Now I have added migration for another type of entity, and suddenly only about 20% of these records are saved, so now I need to call the AddObject method for this type of entity. Can anyone explain how this works?
source
share