Search Results for

    Show / Hide Table of Contents

    Class PostgresUnknownBinaryExpression

    A binary expression only to be used by plugins, since new expressions can only be added (and handled) within the provider itself. Allows defining the operator as a string within the expression, and has default (i.e. propagating) nullability semantics. All type mappings must be applied to the operands before the expression is constructed, since there's no inference logic for it in NpgsqlSqlExpressionFactory.

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

    Constructors

    | Improve this Doc View Source

    PostgresUnknownBinaryExpression(SqlExpression, SqlExpression, string, Type, RelationalTypeMapping?)

    Constructs a PostgresUnknownBinaryExpression.

    Declaration
    public PostgresUnknownBinaryExpression(SqlExpression left, SqlExpression right, string binaryOperator, Type type, RelationalTypeMapping? typeMapping = null)
    Parameters
    Type Name Description
    SqlExpression left

    The left-hand expression.

    SqlExpression right

    The right-hand expression.

    string binaryOperator

    The operator symbol acting on the expression.

    Type type

    The result type.

    RelationalTypeMapping? typeMapping

    The type mapping for the expression.

    Properties

    | Improve this Doc View Source

    Left

    The left-hand expression.

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

    Operator

    The operator.

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

    Right

    The right-hand expression.

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

    Methods

    | Improve this Doc View Source

    Equals(PostgresUnknownBinaryExpression?)

    Declaration
    public virtual bool Equals(PostgresUnknownBinaryExpression? other)
    Parameters
    Type Name Description
    PostgresUnknownBinaryExpression 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, 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 PostgresUnknownBinaryExpression Update(SqlExpression left, SqlExpression right)
    Parameters
    Type Name Description
    SqlExpression left
    SqlExpression right
    Returns
    Type Description
    PostgresUnknownBinaryExpression
    | 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