Table of Contents

Class UpdateExpression

Namespace
FluentCommand.Query.Generators
Assembly
FluentCommand.dll

Represents an update assignment in a SQL UPDATE statement.

public record UpdateExpression : ColumnExpression, IEquatable<ColumnExpression>, IEquatable<UpdateExpression>
Inheritance
UpdateExpression
Implements
Inherited Members

Constructors

UpdateExpression(UpdateExpression)

protected UpdateExpression(UpdateExpression original)

Parameters

original UpdateExpression

UpdateExpression(string, string, string, bool)

Represents an update assignment in a SQL UPDATE statement.

public UpdateExpression(string ColumnName, string ParameterName, string TableAlias = null, bool IsRaw = false)

Parameters

ColumnName string

The name of the column to update.

ParameterName string

The parameter name for the value to assign.

TableAlias string

The alias of the table (optional).

IsRaw bool

Indicates if the update expression is a raw SQL fragment.

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

ParameterName

The parameter name for the value to assign.

public string ParameterName { get; init; }

Property Value

string

Methods

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

public void Deconstruct(out string ColumnName, out string ParameterName, out string TableAlias, out bool IsRaw)

Parameters

ColumnName string
ParameterName string
TableAlias string
IsRaw bool

Equals(ColumnExpression?)

public override sealed bool Equals(ColumnExpression? other)

Parameters

other ColumnExpression

Returns

bool

Equals(UpdateExpression?)

public virtual bool Equals(UpdateExpression? other)

Parameters

other UpdateExpression

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 override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(UpdateExpression?, UpdateExpression?)

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

Parameters

left UpdateExpression
right UpdateExpression

Returns

bool

operator !=(UpdateExpression?, UpdateExpression?)

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

Parameters

left UpdateExpression
right UpdateExpression

Returns

bool