Table of Contents

Class JoinExpression

Namespace
FluentCommand.Query.Generators
Assembly
FluentCommand.dll

Represents a JOIN clause in a SQL statement, including join type and join columns.

public record JoinExpression : IEquatable<JoinExpression>
Inheritance
JoinExpression
Implements
Inherited Members

Constructors

JoinExpression(JoinExpression)

protected JoinExpression(JoinExpression original)

Parameters

original JoinExpression

JoinExpression(string, string, string, string, string, string, JoinTypes)

Represents a JOIN clause in a SQL statement, including join type and join columns.

public JoinExpression(string LeftTableAlias = null, string LeftColumnName = null, string RightTableName = null, string RightTableSchema = null, string RightTableAlias = null, string RightColumnName = null, JoinTypes JoinType = JoinTypes.Inner)

Parameters

LeftTableAlias string

The alias of the left table in the join.

LeftColumnName string

The column name from the left table to join on.

RightTableName string

The name of the right table in the join.

RightTableSchema string

The schema of the right table (optional).

RightTableAlias string

The alias of the right table in the join.

RightColumnName string

The column name from the right table to join on.

JoinType JoinTypes

The type of join (e.g., Inner, Left, Right).

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

JoinType

The type of join (e.g., Inner, Left, Right).

public JoinTypes JoinType { get; init; }

Property Value

JoinTypes

LeftColumnName

The column name from the left table to join on.

public string LeftColumnName { get; init; }

Property Value

string

LeftTableAlias

The alias of the left table in the join.

public string LeftTableAlias { get; init; }

Property Value

string

RightColumnName

The column name from the right table to join on.

public string RightColumnName { get; init; }

Property Value

string

RightTableAlias

The alias of the right table in the join.

public string RightTableAlias { get; init; }

Property Value

string

RightTableName

The name of the right table in the join.

public string RightTableName { get; init; }

Property Value

string

RightTableSchema

The schema of the right table (optional).

public string RightTableSchema { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string, out string, out string, out string, out string, out JoinTypes)

public void Deconstruct(out string LeftTableAlias, out string LeftColumnName, out string RightTableName, out string RightTableSchema, out string RightTableAlias, out string RightColumnName, out JoinTypes JoinType)

Parameters

LeftTableAlias string
LeftColumnName string
RightTableName string
RightTableSchema string
RightTableAlias string
RightColumnName string
JoinType JoinTypes

Equals(JoinExpression?)

public virtual bool Equals(JoinExpression? other)

Parameters

other JoinExpression

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(JoinExpression?, JoinExpression?)

public static bool operator ==(JoinExpression? left, JoinExpression? right)

Parameters

left JoinExpression
right JoinExpression

Returns

bool

operator !=(JoinExpression?, JoinExpression?)

public static bool operator !=(JoinExpression? left, JoinExpression? right)

Parameters

left JoinExpression
right JoinExpression

Returns

bool