Table of Contents

Class TableExpression

Namespace
FluentCommand.Query.Generators
Assembly
FluentCommand.dll

Represents a table reference in a SQL statement, including optional schema, alias, and raw SQL support.

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

Constructors

TableExpression(TableExpression)

protected TableExpression(TableExpression original)

Parameters

original TableExpression

TableExpression(string, string, string, bool)

Represents a table reference in a SQL statement, including optional schema, alias, and raw SQL support.

public TableExpression(string TableName, string TableSchema = null, string TableAlias = null, bool IsRaw = false)

Parameters

TableName string

The name of the table.

TableSchema string

The schema of the table (optional).

TableAlias string

The alias for the table (optional).

IsRaw bool

Indicates if the table expression is a raw SQL fragment.

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

IsRaw

Indicates if the table expression is a raw SQL fragment.

public bool IsRaw { get; init; }

Property Value

bool

TableAlias

The alias for the table (optional).

public string TableAlias { get; init; }

Property Value

string

TableName

The name of the table.

public string TableName { get; init; }

Property Value

string

TableSchema

The schema of the table (optional).

public string TableSchema { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string, out string, out bool)

public void Deconstruct(out string TableName, out string TableSchema, out string TableAlias, out bool IsRaw)

Parameters

TableName string
TableSchema string
TableAlias string
IsRaw bool

Equals(TableExpression?)

public virtual bool Equals(TableExpression? other)

Parameters

other TableExpression

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 ==(TableExpression?, TableExpression?)

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

Parameters

left TableExpression
right TableExpression

Returns

bool

operator !=(TableExpression?, TableExpression?)

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

Parameters

left TableExpression
right TableExpression

Returns

bool