Do I have to refresh a LINQ object that represents a view/table row after I do a submitchanges operation that may alter it?
Let's say I have
Event _event = new Event
{
someproperty = "this";
};
DataContext.Events.InsertOnSubmit(_event);
DataContext.SubmitChanges();
//some operations
_event.someproperty = "that";
DataContext.SubmitChanges();
Let's add to the equation that during some operations, a different thread, with a different instance of DataContext, might change the same _event and submit it.
I sometimes get an exception saying the row cannot be found or has changed. Is there a way to get around this without me having to reselect the _event?