'Declaration
Public MustInherit NotInheritable Class CompiledQuery
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.