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
stringThe name of the column to update.
ParameterName
stringThe parameter name for the value to assign.
TableAlias
stringThe alias of the table (optional).
IsRaw
boolIndicates if the update expression is a raw SQL fragment.
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
ParameterName
The parameter name for the value to assign.
public string ParameterName { get; init; }
Property Value
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
Equals(ColumnExpression?)
public override sealed bool Equals(ColumnExpression? other)
Parameters
other
ColumnExpression
Returns
Equals(UpdateExpression?)
public virtual bool Equals(UpdateExpression? other)
Parameters
other
UpdateExpression
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builder
StringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(UpdateExpression?, UpdateExpression?)
public static bool operator ==(UpdateExpression? left, UpdateExpression? right)
Parameters
left
UpdateExpressionright
UpdateExpression
Returns
operator !=(UpdateExpression?, UpdateExpression?)
public static bool operator !=(UpdateExpression? left, UpdateExpression? right)
Parameters
left
UpdateExpressionright
UpdateExpression