Table of Contents

Struct Condition

Namespace
Rinku.Querying
Assembly
Rinku.dll

One optional part of a query template and the segments its key turns on or off.

public record struct Condition : IComparable<Condition>, IEquatable<Condition>
Implements
Inherited Members
Extension Methods

Constructors

Condition(int, int, int, int, bool)

One optional part of a query template and the segments its key turns on or off.

public Condition(int CondIndex, int SegmentInd, int Length, int NbConditionSkip, bool IsNeeded)

Parameters

CondIndex int

The value index that decides whether the SQL part is included.

SegmentInd int

The starting index in the Segments array controlled by this condition.

Length int

The number of contiguous QuerySegments tied to this logical footprint.

NbConditionSkip int

A positive value is the number of following conditions skipped when this condition fails. A negative value marks an OR group and its absolute value is the size of that group.

IsNeeded bool

Whether the value must be present rather than absent.

Properties

CondIndex

The value index that decides whether the SQL part is included.

public int CondIndex { readonly get; set; }

Property Value

int

IsNeeded

Whether the value must be present rather than absent.

public bool IsNeeded { readonly get; set; }

Property Value

bool

Length

The number of contiguous QuerySegments tied to this logical footprint.

public int Length { readonly get; set; }

Property Value

int

NbConditionSkip

A positive value is the number of following conditions skipped when this condition fails. A negative value marks an OR group and its absolute value is the size of that group.

public int NbConditionSkip { readonly get; set; }

Property Value

int

SegmentInd

The starting index in the Segments array controlled by this condition.

public int SegmentInd { readonly get; set; }

Property Value

int

Methods

CompareTo(Condition)

Orders conditions by their SQL segment.

public readonly int CompareTo(Condition other)

Parameters

other Condition

Returns

int