[]
Provides for compilation and cache of queries for reuse.
public static class CompiledQuery
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.
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. |