LinqConnect Documentation
Devart.Data.Linq Namespace / CompiledQueryCache Class
Members

In This Topic
    CompiledQueryCache Class
    In This Topic
    Caches compiled LINQ queries of the application.
    Syntax
    'Declaration
     
    Public NotInheritable Class CompiledQueryCache 
    public sealed class CompiledQueryCache 
    Remarks

    All class methods are thread-safe. All compiled queries are stored in the queue with MaxSize length.

    When the new query is executed in the DataContext, it is placed to the beginning of the queue. When the queue is filled, the last query is removed from the queue.

    When a query is executed in the DataContext, it is searched in the cache. If it is found, it is not compiled again, and is moved to the beginning of the queue. So, most recently used queries are stored in the beginning of the queue.

    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