I save some EF entities in a cache layer I wrote. When I retrieve them from the cache I sometimes get a “contextObject is disposed” error. I want to attach a new contextObject after I get the entity from the cache. What side effects could this cause? What happens if I attach an entity which is already attached? Performance?
I save some EF entities in a cache layer I wrote. When I retrieve
Share
try like this.
check for this Answer also. Entity Attached to a data context