Table of Contents

Class LikeCondition

Namespace
The.SQL.QIR.Conditions
Assembly
Instagile.dll
[MessagePackObject(false)]
public sealed record LikeCondition : Condition, IEquatable<Condition>, IEquatable<LikeCondition>
Inheritance
LikeCondition
Implements
Inherited Members

Constructors

LikeCondition(Value, Value, bool, bool, bool)

public LikeCondition(Value Left, Value Right, bool FuzzPrefix = false, bool FuzzSuffix = false, bool Sanitise = false)

Parameters

Left Value
Right Value
FuzzPrefix bool
FuzzSuffix bool
Sanitise bool

Properties

FuzzPrefix

[Key(2)]
public bool FuzzPrefix { get; init; }

Property Value

bool

FuzzSuffix

[Key(3)]
public bool FuzzSuffix { get; init; }

Property Value

bool

Joins

Joins required to reach this condition.

[IgnoreMember]
public override IEnumerable<Join> Joins { get; }

Property Value

IEnumerable<Join>

Left

[Key(0)]
public Value Left { get; init; }

Property Value

Value

Right

[Key(1)]
public Value Right { get; init; }

Property Value

Value

Sanitise

[Key(4)]
public bool Sanitise { get; init; }

Property Value

bool

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Update(Value, Value, bool, bool, bool)

public LikeCondition Update(Value left, Value right, bool fuzzPrefix, bool fuzzSuffix, bool sanitise)

Parameters

left Value
right Value
fuzzPrefix bool
fuzzSuffix bool
sanitise bool

Returns

LikeCondition

WithSource(Table, Table)

public override Condition WithSource(Table oldSource, Table newSource)

Parameters

oldSource Table
newSource Table

Returns

Condition