MSDN Archive Home
Help and FAQs
Persistence Ignorance (POCO) Adapter for Entity Framework
All Resource Updates
Create New Discussion
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...
Sign in to post message or set email notifications
Manage Your Profile
MSDN Flash Newsletter
© 2008 Microsoft Corporation. All rights reserved.