LinqConnect Documentation
Devart.Data.Linq Namespace / CompiledQueryCache Class / RegisterDataContext Method
The type of the DataContext to cache queries from.

In This Topic
    RegisterDataContext Method
    In This Topic
    Registers data context by type for caching queries from it and starts caching queries.
    Syntax
    'Declaration
     
    Public Shared Function RegisterDataContext( _
       ByVal dataContextType As Type _
    ) As CompiledQueryCache
    public static CompiledQueryCache RegisterDataContext( 
       Type dataContextType
    )

    Parameters

    dataContextType
    The type of the DataContext to cache queries from.

    Return Value

    The new CompiledQueryCache instance, that caches queries from the specified context.
    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