During update of a LinqRepository any child EntitySets were attempted to...

... be updated too. This was causing an issue during th attach because of the datacontext lifecycle. Fixes this issue by removing any child entity sets from the datacontext before the attach.