Table of Contents

Class SqlQueryDependentParamsAttribute

Namespace
LinqToDB.Expressions
Assembly
linq2db.dll

Used for controlling query caching of custom SQL Functions. Parameter with this attribute will be evaluated on client side before generating SQL.

[AttributeUsage(AttributeTargets.Parameter)]
public class SqlQueryDependentParamsAttribute : SqlQueryDependentAttribute, _Attribute
Inheritance
SqlQueryDependentParamsAttribute
Implements
Inherited Members
Extension Methods

Methods

ExpressionsEqual<TContext>(TContext, Expression, Expression, Func<TContext, Expression, Expression, bool>)

Compares two expressions during expression tree comparison. Has to be overriden if specific comparison required.

public override bool ExpressionsEqual<TContext>(TContext context, Expression expr1, Expression expr2, Func<TContext, Expression, Expression, bool> comparer)

Parameters

context TContext
expr1 Expression
expr2 Expression
comparer Func<TContext, Expression, Expression, bool>

Default function for comparing expressions.

Returns

bool

Result of comparison

Type Parameters

TContext

SplitExpression(Expression)

Returns sub-expressions, if attribute applied to composite expression. Default (non-composite) implementation returns expression.

public override IEnumerable<Expression> SplitExpression(Expression expression)

Parameters

expression Expression

Expression to split.

Returns

IEnumerable<Expression>

Passed expression of sub-expressions for composite expression.