Class PgRowValueExpression
- Assembly
- Npgsql.EntityFrameworkCore.PostgreSQL.dll
An expression that represents a PostgreSQL-specific row value expression in a SQL tree.
public class PgRowValueExpression : SqlExpression, IRelationalQuotableExpression, IPrintableExpression, IEquatable<PgRowValueExpression>
- Inheritance
-
PgRowValueExpression
- Implements
- Inherited Members
Remarks
See the PostgreSQL docs for more information.
Constructors
PgRowValueExpression(IReadOnlyList<SqlExpression>, Type, RelationalTypeMapping?)
public PgRowValueExpression(IReadOnlyList<SqlExpression> values, Type type, RelationalTypeMapping? typeMapping = null)
Parameters
values
IReadOnlyList<SqlExpression>type
TypetypeMapping
RelationalTypeMapping
Properties
Values
The values of this PostgreSQL row value expression.
public virtual IReadOnlyList<SqlExpression> Values { get; }
Property Value
Methods
Equals(PgRowValueExpression?)
Indicates whether the current object is equal to another object of the same type.
public virtual bool Equals(PgRowValueExpression? other)
Parameters
other
PgRowValueExpressionAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Print(ExpressionPrinter)
Creates a printable string representation of the given expression using ExpressionPrinter.
protected override void Print(ExpressionPrinter expressionPrinter)
Parameters
expressionPrinter
ExpressionPrinterThe expression printer to use.
Quote()
Quotes the expression; that is, returns an expression that, when evaluated, would construct an expression identical to this one. Used to generate code for precompiled queries, which reconstructs this expression.
public override Expression Quote()
Returns
Update(IReadOnlyList<SqlExpression>)
Creates a new expression that is like this one, but using the supplied children. If all of the children are the same, it will return this expression.
public virtual PgRowValueExpression Update(IReadOnlyList<SqlExpression> values)
Parameters
values
IReadOnlyList<SqlExpression>
Returns
VisitChildren(ExpressionVisitor)
Reduces the node and then calls the visitor delegate on the reduced expression. The method throws an exception if the node is not reducible.
protected override Expression VisitChildren(ExpressionVisitor visitor)
Parameters
visitor
ExpressionVisitorAn instance of Func<T, TResult>.
Returns
- Expression
The expression being visited, or an expression which should replace it in the tree.