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
stringThe alias of the left table in the join.
LeftColumnName
stringThe column name from the left table to join on.
RightTableName
stringThe name of the right table in the join.
RightTableSchema
stringThe schema of the right table (optional).
RightTableAlias
stringThe alias of the right table in the join.
RightColumnName
stringThe column name from the right table to join on.
JoinType
JoinTypesThe type of join (e.g., Inner, Left, Right).
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
JoinType
The type of join (e.g., Inner, Left, Right).
public JoinTypes JoinType { get; init; }
Property Value
LeftColumnName
The column name from the left table to join on.
public string LeftColumnName { get; init; }
Property Value
LeftTableAlias
The alias of the left table in the join.
public string LeftTableAlias { get; init; }
Property Value
RightColumnName
The column name from the right table to join on.
public string RightColumnName { get; init; }
Property Value
RightTableAlias
The alias of the right table in the join.
public string RightTableAlias { get; init; }
Property Value
RightTableName
The name of the right table in the join.
public string RightTableName { get; init; }
Property Value
RightTableSchema
The schema of the right table (optional).
public string RightTableSchema { get; init; }
Property Value
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
stringLeftColumnName
stringRightTableName
stringRightTableSchema
stringRightTableAlias
stringRightColumnName
stringJoinType
JoinTypes
Equals(JoinExpression?)
public virtual bool Equals(JoinExpression? other)
Parameters
other
JoinExpression
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builder
StringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(JoinExpression?, JoinExpression?)
public static bool operator ==(JoinExpression? left, JoinExpression? right)
Parameters
left
JoinExpressionright
JoinExpression
Returns
operator !=(JoinExpression?, JoinExpression?)
public static bool operator !=(JoinExpression? left, JoinExpression? right)
Parameters
left
JoinExpressionright
JoinExpression