Search Results for

    Show / Hide Table of Contents

    Class PostgresArrayIndexExpression

    An SQL expression that represents an indexing into a PostgreSQL array.

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

    specifically disallows having an of value as arrays are a PostgreSQL-only feature.

    Constructors

    | Improve this Doc View Source

    PostgresArrayIndexExpression(SqlExpression, SqlExpression, Type, RelationalTypeMapping?)

    Creates a new instance of the PostgresArrayIndexExpression class.

    Declaration
    public PostgresArrayIndexExpression(SqlExpression array, SqlExpression index, Type type, RelationalTypeMapping? typeMapping)
    Parameters
    Type Name Description
    SqlExpression array

    The array tp index into.

    SqlExpression index

    An position in the array to index into.

    Type type

    The of the expression.

    RelationalTypeMapping? typeMapping

    The associated with the expression.

    Remarks

    specifically disallows having an of value as arrays are a PostgreSQL-only feature.

    Properties

    | Improve this Doc View Source

    Array

    The array being indexed.

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

    specifically disallows having an of value as arrays are a PostgreSQL-only feature.

    | Improve this Doc View Source

    Index

    The index in the array.

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

    specifically disallows having an of value as arrays are a PostgreSQL-only feature.

    Methods

    | Improve this Doc View Source

    Equals(PostgresArrayIndexExpression?)

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

    specifically disallows having an of value as arrays are a PostgreSQL-only feature.

    | 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

    specifically disallows having an of value as arrays are a PostgreSQL-only feature.

    | Improve this Doc View Source

    GetHashCode()

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

    specifically disallows having an of value as arrays are a PostgreSQL-only feature.

    | Improve this Doc View Source

    Print(ExpressionPrinter)

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

    specifically disallows having an of value as arrays are a PostgreSQL-only feature.

    | Improve this Doc View Source

    ToString()

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

    specifically disallows having an of value as arrays are a PostgreSQL-only feature.

    | 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 PostgresArrayIndexExpression Update(SqlExpression array, SqlExpression index)
    Parameters
    Type Name Description
    SqlExpression array

    The Array property of the result.

    SqlExpression index

    The Index property of the result.

    Returns
    Type Description
    PostgresArrayIndexExpression

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

    Remarks

    specifically disallows having an of value as arrays are a PostgreSQL-only feature.

    | 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

    specifically disallows having an of value as arrays are a PostgreSQL-only feature.

    Implements

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