ComponentOne Data Source for Entity Framework
C1.LiveLinq Namespace / IndexedQueryExtensions Class

In This Topic
    IndexedQueryExtensions Class
    In This Topic
    Provides a set of static (extension) methods for querying objects that implement C1.LiveLinq.Indexing.IIndexedSource<T>.
    Object Model
    IndexedQueryExtensions Class
    Public MustInherit NotInheritable Class IndexedQueryExtensions 
    public static class IndexedQueryExtensions 

    The methods in this class provide an implementation of the LINQ query operators for querying data sources that implement C1.LiveLinq.Indexing.IIndexedSource<T>. Those data sources include LiveLinq to Objects, LiveLinq to DataSet and LiveLinq to XML, see How to query collections with LiveLinq.

    These implementations of query operators use indexing and other optimization techniques to speed up query execution.

    Not all standard LINQ query operators are present here, but it does not mean that they cannot be used in the same query. For the operators that are not present here, standard LINQ implementations are used, because they don't require or don't allow optimization.

    Note: Live views are also LiveLinq data sources, but they have their own implementations of query operators defined in the C1.LiveLinq.LiveViews.View<T> class. Live view implementations are heavier, require more resources, so it is not recommended to use live view implementations in cases where you don't need live view functionality (for example, for querying read-only collections), see Live View Performance. If you have a live view, but want to query it using operators from IndexedQueryExtensions instead of C1.LiveLinq.LiveViews.View<T>, use AsIndexed<T> to "downgrade" the live view to an C1.LiveLinq.Indexing.IIndexedSource<T>.

    Inheritance Hierarchy


    See Also