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 SourcePostgresBinaryExpression(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 |
RelationalTypeMapping? | typeMapping | The |
Properties
| Improve this Doc View SourceLeft
The left operand.
Declaration
public virtual SqlExpression Left { get; }
Property Value
Type | Description |
---|---|
SqlExpression |
OperatorType
The operator of this PostgreSQL binary operation.
Declaration
public virtual PostgresExpressionType OperatorType { get; }
Property Value
Type | Description |
---|---|
PostgresExpressionType |
Right
The right operand.
Declaration
public virtual SqlExpression Right { get; }
Property Value
Type | Description |
---|---|
SqlExpression |
Methods
| Improve this Doc View SourceEquals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object? | obj |
Returns
Type | Description |
---|---|
bool |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Print(ExpressionPrinter)
Declaration
protected override void Print(ExpressionPrinter expressionPrinter)
Parameters
Type | Name | Description |
---|---|---|
ExpressionPrinter | expressionPrinter |
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. |
VisitChildren(ExpressionVisitor)
Declaration
protected override Expression VisitChildren(ExpressionVisitor visitor)
Parameters
Type | Name | Description |
---|---|---|
ExpressionVisitor | visitor |
Returns
Type | Description |
---|---|
Expression |