[]
        
(Showing Draft Content)

C1.LiveLinq.CompiledQuery

CompiledQuery Class

Provides for compilation and cache of queries for reuse.

Inheritance
CompiledQuery
Namespace: C1.LiveLinq
Assembly: C1.LiveLinq.4.8.dll
Syntax
public static class CompiledQuery
Remarks

If you need to execute the same query many times, each time with different parameter values, use the CompiledQuery class to improve performance. Without it, every query execution includes a compilation stage, that does not take much time but that time can accumulate to significant numbers if it is repeated many times. The CompiledQuery class contains a single Compile method with several overloads. Call the Compile method to create a delegate to represent the compiled query.

Methods

Name Description
Compile<T, TResult>(Expression<Func<T, IIndexedSource<TResult>>>)

Compiles the query.

Compile<T1, T2, TResult>(Expression<Func<T1, T2, IIndexedSource<TResult>>>)

Compiles the query.

Compile<T1, T2, T3, TResult>(Expression<Func<T1, T2, T3, IIndexedSource<TResult>>>)

Compiles the query.

Compile<T1, T2, T3, T4, TResult>(Expression<Func<T1, T2, T3, T4, IIndexedSource<TResult>>>)

Compiles the query.