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
Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
Syntax
public class PostgresUnknownBinaryExpression : SqlExpression, IEquatable<PostgresUnknownBinaryExpression>
Constructors
|
Improve this Doc
View Source
PostgresUnknownBinaryExpression(SqlExpression, SqlExpression, string, Type, RelationalTypeMapping?)
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
Declaration
public virtual string Operator { get; }
Property Value
|
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
Returns
|
Improve this Doc
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
Type |
Name |
Description |
object? |
obj |
|
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
|
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
|
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
|
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<>