Detach entity instance from data context

Discussion of open issues, suggestions and bugs regarding EntityDAC
Post Reply
rogerscruton.learner
Posts: 2
Joined: Wed 26 Dec 2018 21:59

Detach entity instance from data context

Post by rogerscruton.learner » Wed 26 Dec 2018 22:10

Hello,

I am migrating an existing application to EntityDAC. My application has a memory management approach where the caller is always responsible for destroying objects which it requests.
Is there a way to retrieve an entity and detach from data context so, i can keep my memory management intact?

Regards

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Detach entity instance from data context

Post by MaximG » Fri 04 Jan 2019 14:05

The specificities of memory management when working with EntityDAC are described in our documentation: https://www.devart.com/entitydac/docs/m ... gement.htm
To independently manage the destruction of the objects you use, try disabling entity caching: https://www.devart.com/entitydac/docs/d ... nabled.htm

Post Reply