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
stringThe name of the table.
TableSchema
stringThe schema of the table (optional).
TableAlias
stringThe alias for the table (optional).
IsRaw
boolIndicates if the table expression is a raw SQL fragment.
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
IsRaw
Indicates if the table expression is a raw SQL fragment.
public bool IsRaw { get; init; }
Property Value
TableAlias
The alias for the table (optional).
public string TableAlias { get; init; }
Property Value
TableName
The name of the table.
public string TableName { get; init; }
Property Value
TableSchema
The schema of the table (optional).
public string TableSchema { get; init; }
Property Value
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
Equals(TableExpression?)
public virtual bool Equals(TableExpression? other)
Parameters
other
TableExpression
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 ==(TableExpression?, TableExpression?)
public static bool operator ==(TableExpression? left, TableExpression? right)
Parameters
left
TableExpressionright
TableExpression
Returns
operator !=(TableExpression?, TableExpression?)
public static bool operator !=(TableExpression? left, TableExpression? right)
Parameters
left
TableExpressionright
TableExpression