by Marius Gheorghe
30. September 2009 07:30
Joel's
latest piece takes the cakes as being the crappiest piece of advice. It's pretty fucked up to read development advices about Netscape developers. That's the Netscape who had a crappy codebase and crappy product (see a relation between those two ?).
Don't duct tape any code today. DO not be a "event handler programmer". Think about the future
by Marius Gheorghe
15. September 2009 09:51
Here's the description for entityCollection.Load(MergeOption.OverwriteChanges);
"Objects are always loaded from the persisted store. Any property changes made to
objects in the object context are overwritten by the store values."
Wrong.
If you add an item to the entity collection and then call Load(MergeOption.OverwriteChnages), you will STILL find that item there. To get data from database, you'll need to do :
entityCollection.Clear();
entityCollection.Load(MergeOption.OverwriteChanges);