Page 1 of 1

Detach entity instance from data context

Posted: Wed 26 Dec 2018 22:10
by rogerscruton.learner
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

Re: Detach entity instance from data context

Posted: Fri 04 Jan 2019 14:05
by MaximG
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