Table of Contents

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 TableExpression

The 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

IReadOnlyCollection<string>

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

FromExpressions

The FROM clause tables (optional).

public IReadOnlyCollection<TableExpression> FromExpressions { get; init; }

Property Value

IReadOnlyCollection<TableExpression>

JoinExpressions

The join clauses (optional).

public IReadOnlyCollection<JoinExpression> JoinExpressions { get; init; }

Property Value

IReadOnlyCollection<JoinExpression>

OutputExpressions

The columns to return/output after delete (optional).

public IReadOnlyCollection<ColumnExpression> OutputExpressions { get; init; }

Property Value

IReadOnlyCollection<ColumnExpression>

TableExpression

The table to delete from.

public TableExpression TableExpression { get; init; }

Property Value

TableExpression

WhereExpressions

The WHERE clause conditions (optional).

public IReadOnlyCollection<WhereExpression> WhereExpressions { get; init; }

Property Value

IReadOnlyCollection<WhereExpression>

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 TableExpression
OutputExpressions 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

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

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

Parameters

left DeleteStatement
right DeleteStatement

Returns

bool

operator !=(DeleteStatement?, DeleteStatement?)

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

Parameters

left DeleteStatement
right DeleteStatement

Returns

bool