Table of Contents

Class ExpressionTreeOptimizationContext

Namespace
LinqToDB.Linq.Builder
Assembly
linq2db.dll
public class ExpressionTreeOptimizationContext
Inheritance
ExpressionTreeOptimizationContext
Extension Methods

Constructors

ExpressionTreeOptimizationContext(IDataContext)

public ExpressionTreeOptimizationContext(IDataContext dataContext)

Parameters

dataContext IDataContext

Properties

DataContext

public IDataContext DataContext { get; }

Property Value

IDataContext

MappingSchema

public MappingSchema MappingSchema { get; }

Property Value

MappingSchema

Methods

AggregateExpression(Expression)

public static Expression AggregateExpression(Expression expression)

Parameters

expression Expression

Returns

Expression

CanBeCompiled(Expression)

public bool CanBeCompiled(Expression expr)

Parameters

expr Expression

Returns

bool

CanBeConstant(Expression)

public bool CanBeConstant(Expression expr)

Parameters

expr Expression

Returns

bool

ClearVisitedCache()

public void ClearVisitedCache()

ConvertMethod(MethodCallExpression, LambdaExpression)

public Expression ConvertMethod(MethodCallExpression pi, LambdaExpression lambda)

Parameters

pi MethodCallExpression
lambda LambdaExpression

Returns

Expression

ConvertMethodExpression(Type, MemberInfo, out string?)

public LambdaExpression? ConvertMethodExpression(Type type, MemberInfo mi, out string? alias)

Parameters

type Type
mi MemberInfo
alias string

Returns

LambdaExpression

ExpandExpression(Expression)

public Expression ExpandExpression(Expression expression)

Parameters

expression Expression

Returns

Expression

ExpandExpressionTransformer(Expression)

public Expression ExpandExpressionTransformer(Expression expr)

Parameters

expr Expression

Returns

Expression

ExpandQueryableMethods(Expression)

public Expression ExpandQueryableMethods(Expression expression)

Parameters

expression Expression

Returns

Expression

ExposeExpression(Expression)

public Expression ExposeExpression(Expression expression)

Parameters

expression Expression

Returns

Expression

IsDependsOnParameters()

public bool IsDependsOnParameters()

Returns

bool

IsServerSideOnly(Expression)

public bool IsServerSideOnly(Expression expr)

Parameters

expr Expression

Returns

bool

PreferServerSide(Expression, bool)

public bool PreferServerSide(Expression expr, bool enforceServerSide)

Parameters

expr Expression
enforceServerSide bool

Returns

bool