Struct Condition
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
CondIndexintThe value index that decides whether the SQL part is included.
SegmentIndintThe starting index in the Segments array controlled by this condition.
LengthintThe number of contiguous QuerySegments tied to this logical footprint.
NbConditionSkipintA 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.
IsNeededboolWhether 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
IsNeeded
Whether the value must be present rather than absent.
public bool IsNeeded { readonly get; set; }
Property Value
Length
The number of contiguous QuerySegments tied to this logical footprint.
public int Length { readonly get; set; }
Property Value
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
SegmentInd
The starting index in the Segments array controlled by this condition.
public int SegmentInd { readonly get; set; }
Property Value
Methods
CompareTo(Condition)
Orders conditions by their SQL segment.
public readonly int CompareTo(Condition other)
Parameters
otherCondition