Table of Contents

Class Compilation

Namespace
LinqToDB.Common
Assembly
linq2db.dll

Contains LINQ expression compilation options.

public static class Compilation
Inheritance
Compilation

Methods

CompileExpression(LambdaExpression)

Internal API.

public static Delegate CompileExpression(this LambdaExpression expression)

Parameters

expression LambdaExpression

Returns

Delegate

CompileExpression<TDelegate>(Expression<TDelegate>)

Internal API.

public static TDelegate CompileExpression<TDelegate>(this Expression<TDelegate> expression) where TDelegate : Delegate

Parameters

expression Expression<TDelegate>

Returns

TDelegate

Type Parameters

TDelegate

SetExpressionCompiler(Func<LambdaExpression, Delegate?>?)

Sets LINQ expression compilation method.

public static void SetExpressionCompiler(Func<LambdaExpression, Delegate?>? compiler)

Parameters

compiler Func<LambdaExpression, Delegate>

Method to use for expression compilation or null to reset compilation logic to defaults.