Table of Contents

Class AggregateFunctionBuilder.ModeConfig

Namespace
LinqToDB.Linq.Translation
Assembly
linq2db.dll
public sealed class AggregateFunctionBuilder.ModeConfig
Inheritance
object
AggregateFunctionBuilder.ModeConfig
Extension Methods

Properties

AllowDistinctFlag

public bool AllowDistinctFlag { get; set; }

Property Value

bool

AllowFilterFlag

public bool AllowFilterFlag { get; set; }

Property Value

bool

AllowNotNullCheckMode

public bool? AllowNotNullCheckMode { get; set; }

Property Value

bool?

AllowOrderByFlag

public bool AllowOrderByFlag { get; set; }

Property Value

bool

ArgumentIndexes

public int[] ArgumentIndexes { get; set; }

Property Value

int[]

BuildAction

public Action<AggregateFunctionBuilder.AggregateComposer>? BuildAction { get; set; }

Property Value

Action<AggregateFunctionBuilder.AggregateComposer>

FallbackExpression

public Expression? FallbackExpression { get; set; }

Property Value

Expression

FilterLambdaIndex

public int? FilterLambdaIndex { get; set; }

Property Value

int?

HasValue

public bool HasValue { get; set; }

Property Value

bool

IsServerSideOnly

When false (default), allows Build(ITranslationContext, MethodCallExpression, bool) to bail out gracefully (return null) on a translation failure of any argument / item / value expression — but only when the caller passed isExpression: true to Build. Set to true for strict server-side-only aggregates that must error rather than fall through to a partial-translation cascade.

public bool IsServerSideOnly { get; set; }

Property Value

bool

ItemTransform

Plain-mode hook: rewrite each unpacked item LINQ-expression before SQL translation.

public Func<Expression, Expression>? ItemTransform { get; set; }

Property Value

Func<Expression, Expression>

SequenceIndex

public int? SequenceIndex { get; set; }

Property Value

int?

ValueTransform

Aggregate-mode hook: rewrite the per-row value LINQ-expression before SQL translation.

public Func<Expression, Expression>? ValueTransform { get; set; }

Property Value

Func<Expression, Expression>

Methods

Clone()

Creates a shallow copy of current configuration. Arrays are cloned, delegates are referenced.

public AggregateFunctionBuilder.ModeConfig Clone()

Returns

AggregateFunctionBuilder.ModeConfig