Class DeleteStatement
- Namespace
- FluentCommand.Query.Generators
- Assembly
- FluentCommand.dll
Represents a complete SQL DELETE statement, including table, output, joins, where, and comments.
public record DeleteStatement : IEquatable<DeleteStatement>
- Inheritance
-
DeleteStatement
- Implements
- Inherited Members
Constructors
DeleteStatement(DeleteStatement)
protected DeleteStatement(DeleteStatement original)
Parameters
original
DeleteStatement
DeleteStatement(TableExpression, IReadOnlyCollection<ColumnExpression>, IReadOnlyCollection<TableExpression>, IReadOnlyCollection<JoinExpression>, IReadOnlyCollection<WhereExpression>, IReadOnlyCollection<string>)
Represents a complete SQL DELETE statement, including table, output, joins, where, and comments.
public DeleteStatement(TableExpression TableExpression, IReadOnlyCollection<ColumnExpression> OutputExpressions, IReadOnlyCollection<TableExpression> FromExpressions, IReadOnlyCollection<JoinExpression> JoinExpressions, IReadOnlyCollection<WhereExpression> WhereExpressions, IReadOnlyCollection<string> CommentExpressions)
Parameters
TableExpression
TableExpressionThe table to delete from.
OutputExpressions
IReadOnlyCollection<ColumnExpression>The columns to return/output after delete (optional).
FromExpressions
IReadOnlyCollection<TableExpression>The FROM clause tables (optional).
JoinExpressions
IReadOnlyCollection<JoinExpression>The join clauses (optional).
WhereExpressions
IReadOnlyCollection<WhereExpression>The WHERE clause conditions (optional).
CommentExpressions
IReadOnlyCollection<string>The comment expressions to include in the statement.
Properties
CommentExpressions
The comment expressions to include in the statement.
public IReadOnlyCollection<string> CommentExpressions { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
FromExpressions
The FROM clause tables (optional).
public IReadOnlyCollection<TableExpression> FromExpressions { get; init; }
Property Value
JoinExpressions
The join clauses (optional).
public IReadOnlyCollection<JoinExpression> JoinExpressions { get; init; }
Property Value
OutputExpressions
The columns to return/output after delete (optional).
public IReadOnlyCollection<ColumnExpression> OutputExpressions { get; init; }
Property Value
TableExpression
The table to delete from.
public TableExpression TableExpression { get; init; }
Property Value
WhereExpressions
The WHERE clause conditions (optional).
public IReadOnlyCollection<WhereExpression> WhereExpressions { get; init; }
Property Value
Methods
Deconstruct(out TableExpression, out IReadOnlyCollection<ColumnExpression>, out IReadOnlyCollection<TableExpression>, out IReadOnlyCollection<JoinExpression>, out IReadOnlyCollection<WhereExpression>, out IReadOnlyCollection<string>)
public void Deconstruct(out TableExpression TableExpression, out IReadOnlyCollection<ColumnExpression> OutputExpressions, out IReadOnlyCollection<TableExpression> FromExpressions, out IReadOnlyCollection<JoinExpression> JoinExpressions, out IReadOnlyCollection<WhereExpression> WhereExpressions, out IReadOnlyCollection<string> CommentExpressions)
Parameters
TableExpression
TableExpressionOutputExpressions
IReadOnlyCollection<ColumnExpression>FromExpressions
IReadOnlyCollection<TableExpression>JoinExpressions
IReadOnlyCollection<JoinExpression>WhereExpressions
IReadOnlyCollection<WhereExpression>CommentExpressions
IReadOnlyCollection<string>
Equals(DeleteStatement?)
public virtual bool Equals(DeleteStatement? other)
Parameters
other
DeleteStatement
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 ==(DeleteStatement?, DeleteStatement?)
public static bool operator ==(DeleteStatement? left, DeleteStatement? right)
Parameters
left
DeleteStatementright
DeleteStatement
Returns
operator !=(DeleteStatement?, DeleteStatement?)
public static bool operator !=(DeleteStatement? left, DeleteStatement? right)
Parameters
left
DeleteStatementright
DeleteStatement