Class PostgresAnyExpression
Represents a PostgreSQL array ANY expression.
Inheritance
object
PostgresAnyExpression
Implements
IEquatable<><PostgresAnyExpression>
Namespace: Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal
Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
Syntax
public class PostgresAnyExpression : SqlExpression, IEquatable<PostgresAnyExpression>
Remarks
Examples
1 = ANY ('{0,1,2}'), 'cat' LIKE ANY ('{a%,b%,c%}')
Constructors
| Improve this Doc View SourcePostgresAnyExpression(SqlExpression, SqlExpression, PostgresAnyOperatorType, RelationalTypeMapping?)
Constructs a PostgresAnyExpression.
Declaration
public PostgresAnyExpression(SqlExpression item, SqlExpression array, PostgresAnyOperatorType operatorType, RelationalTypeMapping? typeMapping)
Parameters
Type | Name | Description |
---|---|---|
SqlExpression | item | The value to find. |
SqlExpression | array | The array to search. |
PostgresAnyOperatorType | operatorType | The operator symbol to the array expression. |
RelationalTypeMapping? | typeMapping | The type mapping for the expression. |
Remarks
Properties
| Improve this Doc View SourceArray
The array of values or patterns to test for the Item.
Declaration
public virtual SqlExpression Array { get; }
Property Value
Type | Description |
---|---|
SqlExpression |
Remarks
| Improve this Doc View SourceItem
The value to test against the Array.
Declaration
public virtual SqlExpression Item { get; }
Property Value
Type | Description |
---|---|
SqlExpression |
Remarks
| Improve this Doc View SourceOperatorType
The operator.
Declaration
public virtual PostgresAnyOperatorType OperatorType { get; }
Property Value
Type | Description |
---|---|
PostgresAnyOperatorType |
Remarks
| Improve this Doc View SourceType
Declaration
public override Type Type { get; }
Property Value
Type | Description |
---|---|
Type |
Remarks
Methods
| Improve this Doc View SourceEquals(PostgresAnyExpression?)
Declaration
public virtual bool Equals(PostgresAnyExpression? other)
Parameters
Type | Name | Description |
---|---|---|
PostgresAnyExpression | other |
Returns
Type | Description |
---|---|
bool |
Remarks
| Improve this Doc View SourceEquals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object? | obj |
Returns
Type | Description |
---|---|
bool |
Remarks
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Remarks
| Improve this Doc View SourcePrint(ExpressionPrinter)
Declaration
protected override void Print(ExpressionPrinter expressionPrinter)
Parameters
Type | Name | Description |
---|---|---|
ExpressionPrinter | expressionPrinter |
Remarks
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Remarks
| Improve this Doc View SourceUpdate(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 PostgresAnyExpression Update(SqlExpression item, SqlExpression array)
Parameters
Type | Name | Description |
---|---|---|
SqlExpression | item | The Item property of the result. |
SqlExpression | array | The Array property of the result. |
Returns
Type | Description |
---|---|
PostgresAnyExpression | This expression if no children changed, or an expression with the updated children. |
Remarks
| Improve this Doc View SourceVisitChildren(ExpressionVisitor)
Declaration
protected override Expression VisitChildren(ExpressionVisitor visitor)
Parameters
Type | Name | Description |
---|---|---|
ExpressionVisitor | visitor |
Returns
Type | Description |
---|---|
Expression |
Remarks
Implements
IEquatable<>