Search Results for

    Show / Hide Table of Contents

    Class PostgresAnyExpression

    Represents a PostgreSQL array ANY expression.

    Inheritance
    object
    PostgresAnyExpression
    Implements
    IEquatable<><PostgresAnyExpression>
    Namespace: Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal
    Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
    Syntax
    public class PostgresAnyExpression : SqlExpression, IEquatable<PostgresAnyExpression>
    Remarks

    See https://www.postgresql.org/docs/current/static/functions-comparisons.html

    Examples

    1 = ANY ('{0,1,2}'), 'cat' LIKE ANY ('{a%,b%,c%}')

    Constructors

    | Improve this Doc View Source

    PostgresAnyExpression(SqlExpression, SqlExpression, PostgresAnyOperatorType, RelationalTypeMapping?)

    Constructs a PostgresAnyExpression.

    Declaration
    public PostgresAnyExpression(SqlExpression item, SqlExpression array, PostgresAnyOperatorType operatorType, RelationalTypeMapping? typeMapping)
    Parameters
    Type Name Description
    SqlExpression item

    The value to find.

    SqlExpression array

    The array to search.

    PostgresAnyOperatorType operatorType

    The operator symbol to the array expression.

    RelationalTypeMapping? typeMapping

    The type mapping for the expression.

    Remarks

    See https://www.postgresql.org/docs/current/static/functions-comparisons.html

    Properties

    | Improve this Doc View Source

    Array

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

    Declaration
    public virtual SqlExpression Array { get; }
    Property Value
    Type Description
    SqlExpression
    Remarks

    See https://www.postgresql.org/docs/current/static/functions-comparisons.html

    | Improve this Doc View Source

    Item

    The value to test against the Array.

    Declaration
    public virtual SqlExpression Item { get; }
    Property Value
    Type Description
    SqlExpression
    Remarks

    See https://www.postgresql.org/docs/current/static/functions-comparisons.html

    | Improve this Doc View Source

    OperatorType

    The operator.

    Declaration
    public virtual PostgresAnyOperatorType OperatorType { get; }
    Property Value
    Type Description
    PostgresAnyOperatorType
    Remarks

    See https://www.postgresql.org/docs/current/static/functions-comparisons.html

    | Improve this Doc View Source

    Type

    Declaration
    public override Type Type { get; }
    Property Value
    Type Description
    Type
    Remarks

    See https://www.postgresql.org/docs/current/static/functions-comparisons.html

    Methods

    | Improve this Doc View Source

    Equals(PostgresAnyExpression?)

    Declaration
    public virtual bool Equals(PostgresAnyExpression? other)
    Parameters
    Type Name Description
    PostgresAnyExpression other
    Returns
    Type Description
    bool
    Remarks

    See https://www.postgresql.org/docs/current/static/functions-comparisons.html

    | Improve this Doc View Source

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object? obj
    Returns
    Type Description
    bool
    Remarks

    See https://www.postgresql.org/docs/current/static/functions-comparisons.html

    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Remarks

    See https://www.postgresql.org/docs/current/static/functions-comparisons.html

    | Improve this Doc View Source

    Print(ExpressionPrinter)

    Declaration
    protected override void Print(ExpressionPrinter expressionPrinter)
    Parameters
    Type Name Description
    ExpressionPrinter expressionPrinter
    Remarks

    See https://www.postgresql.org/docs/current/static/functions-comparisons.html

    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Remarks

    See https://www.postgresql.org/docs/current/static/functions-comparisons.html

    | Improve this Doc View Source

    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.

    Declaration
    public virtual PostgresAnyExpression Update(SqlExpression item, SqlExpression array)
    Parameters
    Type Name Description
    SqlExpression item

    The Item property of the result.

    SqlExpression array

    The Array property of the result.

    Returns
    Type Description
    PostgresAnyExpression

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

    Remarks

    See https://www.postgresql.org/docs/current/static/functions-comparisons.html

    | Improve this Doc View Source

    VisitChildren(ExpressionVisitor)

    Declaration
    protected override Expression VisitChildren(ExpressionVisitor visitor)
    Parameters
    Type Name Description
    ExpressionVisitor visitor
    Returns
    Type Description
    Expression
    Remarks

    See https://www.postgresql.org/docs/current/static/functions-comparisons.html

    Implements

    IEquatable<>
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team