'Declaration Public Enum EntityCachingMode Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
public enum EntityCachingMode : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
'Declaration Public Enum EntityCachingMode Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
public enum EntityCachingMode : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Member | Description |
---|---|
None | Entities are not cached. Whenever you query entities, they are materialized from the result set. |
StrongReference | Entity cache holds strong references to the entities. Unused entity objects are not garbage-collected till this DataContext instance exists. Note that this may lead to excessive memory consumption and stale entities if DataContext instances live for a long time. |
WeakReference | Default behavior. Entity cache holds weak references to the entities. Unused entities are eventually garbage-collected from the cache. |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2