LinqConnect Documentation
Devart.Data.Linq Namespace / EntityCachingMode Enumeration

In This Topic
    EntityCachingMode Enumeration
    In This Topic
    This enumeration is used to configure the DataContext entity cache.
    Syntax
    'Declaration
     
    Public Enum EntityCachingMode 
       Inherits System.Enum
       Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
    Members
    MemberDescription
    NoneEntities are not cached. Whenever you query entities, they are materialized from the result set.
    StrongReferenceEntity 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.
    WeakReferenceDefault behavior. Entity cache holds weak references to the entities. Unused entities are eventually garbage-collected from the cache.
    Remarks
    See Object Identity for more information on how entity cache works.
    Requirements

    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

    See Also