Wiki Link: [discussion:3044]
Possible to detach an objectgraph quickly? 

Feb 25 2010 at 1:57 PM

I had to detach a graph like AggregateEntity.ChildCollection.RelatedObject today. It resulted in a method of 23 lines. Is it possible to do something like pocoAdapter.CreatePocoEntityWithLoadedProperties()? As soon as I do CreatePocoEntity() all eager-loaded data is replaced with null, so I ended up loading the collection by itself, then iterating and creating pocos for each, then attaching the related object. All objects are detached manually too...


Page view tracker