Search Results for

    Show / Hide Table of Contents

    Class PostgresJsonTraversalExpression

    Represents a PostgreSQL JSON operator traversing a JSON document with a path (i.e. x#>y or x#>>y)

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

    Constructors

    | Improve this Doc View Source

    PostgresJsonTraversalExpression(SqlExpression, IReadOnlyList<SqlExpression>, bool, Type, RelationalTypeMapping?)

    Constructs a PostgresJsonTraversalExpression.

    Declaration
    public PostgresJsonTraversalExpression(SqlExpression expression, IReadOnlyList<SqlExpression> path, bool returnsText, Type type, RelationalTypeMapping? typeMapping)
    Parameters
    Type Name Description
    SqlExpression expression
    IReadOnlyList<><SqlExpression> path
    bool returnsText
    Type type
    RelationalTypeMapping? typeMapping

    Properties

    | Improve this Doc View Source

    Expression

    The match expression.

    Declaration
    public virtual SqlExpression Expression { get; }
    Property Value
    Type Description
    SqlExpression
    | Improve this Doc View Source

    Path

    The pattern to match.

    Declaration
    public virtual IReadOnlyList<SqlExpression> Path { get; }
    Property Value
    Type Description
    IReadOnlyList<><SqlExpression>
    | Improve this Doc View Source

    ReturnsText

    Whether the text-returning operator (x#>>y) or the object-returning operator (x#>y) is used.

    Declaration
    public virtual bool ReturnsText { get; }
    Property Value
    Type Description
    bool

    Methods

    | Improve this Doc View Source

    Append(SqlExpression)

    Appends an additional path component to this PostgresJsonTraversalExpression and returns the result.

    Declaration
    public virtual PostgresJsonTraversalExpression Append(SqlExpression pathComponent)
    Parameters
    Type Name Description
    SqlExpression pathComponent
    Returns
    Type Description
    PostgresJsonTraversalExpression
    | Improve this Doc View Source

    Equals(PostgresJsonTraversalExpression?)

    Declaration
    public virtual bool Equals(PostgresJsonTraversalExpression? other)
    Parameters
    Type Name Description
    PostgresJsonTraversalExpression other
    Returns
    Type Description
    bool
    | Improve this Doc View Source

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object? obj
    Returns
    Type Description
    bool
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    | Improve this Doc View Source

    Print(ExpressionPrinter)

    Declaration
    protected override void Print(ExpressionPrinter expressionPrinter)
    Parameters
    Type Name Description
    ExpressionPrinter expressionPrinter
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    | Improve this Doc View Source

    Update(SqlExpression, 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.

    Declaration
    public virtual PostgresJsonTraversalExpression Update(SqlExpression expression, IReadOnlyList<SqlExpression> path)
    Parameters
    Type Name Description
    SqlExpression expression
    IReadOnlyList<><SqlExpression> path
    Returns
    Type Description
    PostgresJsonTraversalExpression
    | Improve this Doc View Source

    VisitChildren(ExpressionVisitor)

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

    Implements

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