Telerik Data Access offers the Detach/Attach API
. The Detach
method detaches an entity or enumeration of entities from the context. Just as with AsNoTracking, the resulting objects are not tracked
for changes by the context.
The difference is that objects returned by the Detach method still have state. If they are later attached to the context, they will automatically
introduce changes to it if they have been modified even while they have been detached.
Furthermore, the Detach method can be combined with Fetch Strategies
in order to disconnect entire hierarchies of related objects from the context.
If you are interested in seeing an example of our Detach/Attach API in action, please check out the Using the Context API
sample from our Samples Kit
. In it, there are unit tests that demonstrate the behavior of Detach
and how attached or detached objects impact the context. You will also be able to find tests demonstrating Fetch Strategies
I hope this helps. If you have additional questions, feel free to post at our forums again.
OpenAccess ORM is now Telerik Data Access
. For more information on the new names, please, check out the Telerik Product Map