c# - how do i disable Caching in Entity Framework from Config file -
i running problems huge objects occupy memory , reference not being released. used .net memory profiler find out root object , references entity framework class.
is there way can disable caching of queried objects in entity framework without chanign code? in config file may be?
you should have using
statements dispose objectcontext. ef keeps object graph of queried objects. think use objectcontext.detach(entity);
detach entities objectcontext.
Comments
Post a Comment