Table of Contents

Class PgAllExpression

Namespace
Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal
Assembly
Npgsql.EntityFrameworkCore.PostgreSQL.dll

Represents a PostgreSQL array ALL expression.

public class PgAllExpression : SqlExpression, IRelationalQuotableExpression, IPrintableExpression, IEquatable<PgAllExpression>
Inheritance
PgAllExpression
Implements
Inherited Members

Remarks

Constructors

PgAllExpression(SqlExpression, SqlExpression, PgAllOperatorType, RelationalTypeMapping?)

Constructs a PgAllExpression.

public PgAllExpression(SqlExpression item, SqlExpression array, PgAllOperatorType operatorType, RelationalTypeMapping? typeMapping)

Parameters

item SqlExpression

The value to find.

array SqlExpression

The array to search.

operatorType PgAllOperatorType

The operator symbol to the array expression.

typeMapping RelationalTypeMapping

The type mapping for the expression.

Properties

Array

The array of values or patterns to test for the Item.

public virtual SqlExpression Array { get; }

Property Value

SqlExpression

Item

The value to test against the Array.

public virtual SqlExpression Item { get; }

Property Value

SqlExpression

OperatorType

The operator.

public virtual PgAllOperatorType OperatorType { get; }

Property Value

PgAllOperatorType

Type

Gets the static type of the expression that this Expression represents.

public override Type Type { get; }

Property Value

Type

The Type that represents the static type of the expression.

Methods

Equals(PgAllExpression?)

Indicates whether the current object is equal to another object of the same type.

public virtual bool Equals(PgAllExpression? other)

Parameters

other PgAllExpression

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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 ExpressionPrinter

The 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

Expression

ToString()

Returns a textual representation of the Expression.

public override string ToString()

Returns

string

A textual representation of the Expression.

Update(SqlExpression, 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 PgAllExpression Update(SqlExpression item, SqlExpression array)

Parameters

item SqlExpression

The Item property of the result.

array SqlExpression

The Array property of the result.

Returns

PgAllExpression

This expression if no children changed, or an expression with the updated children.

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 ExpressionVisitor

An instance of Func<T, TResult>.

Returns

Expression

The expression being visited, or an expression which should replace it in the tree.