Search Results for

    Show / Hide Table of Contents

    Class PostgresBinaryExpression

    An expression that represents a PostgreSQL-specific binary operation in a SQL tree.

    Inheritance
    object
    PostgresBinaryExpression
    Namespace: Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal
    Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
    Syntax
    public class PostgresBinaryExpression : SqlExpression

    Constructors

    | Improve this Doc View Source

    PostgresBinaryExpression(PostgresExpressionType, SqlExpression, SqlExpression, Type, RelationalTypeMapping?)

    Creates a new instance of the PostgresBinaryExpression class.

    Declaration
    public PostgresBinaryExpression(PostgresExpressionType operatorType, SqlExpression left, SqlExpression right, Type type, RelationalTypeMapping? typeMapping)
    Parameters
    Type Name Description
    PostgresExpressionType operatorType

    The operator to apply.

    SqlExpression left

    An expression which is left operand.

    SqlExpression right

    An expression which is right operand.

    Type type

    The of the expression.

    RelationalTypeMapping? typeMapping

    The associated with the expression.

    Properties

    | Improve this Doc View Source

    Left

    The left operand.

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

    OperatorType

    The operator of this PostgreSQL binary operation.

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

    Right

    The right operand.

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

    Methods

    | 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

    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 PostgresBinaryExpression Update(SqlExpression left, SqlExpression right)
    Parameters
    Type Name Description
    SqlExpression left

    The Left property of the result.

    SqlExpression right

    The Right property of the result.

    Returns
    Type Description
    PostgresBinaryExpression

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

    | Improve this Doc View Source

    VisitChildren(ExpressionVisitor)

    Declaration
    protected override Expression VisitChildren(ExpressionVisitor visitor)
    Parameters
    Type Name Description
    ExpressionVisitor visitor
    Returns
    Type Description
    Expression
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team