Class PostgresNewArrayExpression
Represents creating a new PostgreSQL array.
Inheritance
object
PostgresNewArrayExpression
Namespace: Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal
Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
Syntax
public class PostgresNewArrayExpression : SqlExpression
Constructors
| Improve this Doc View SourcePostgresNewArrayExpression(IReadOnlyList<SqlExpression>, Type, RelationalTypeMapping?)
Creates a new instance of the PostgresNewArrayExpression class.
Declaration
public PostgresNewArrayExpression(IReadOnlyList<SqlExpression> expressions, Type type, RelationalTypeMapping? typeMapping)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyList<><SqlExpression> | expressions | The values to initialize the elements of the new array. |
Type | type | The |
RelationalTypeMapping? | typeMapping | The |
Properties
| Improve this Doc View SourceExpressions
The operator of this PostgreSQL binary operation.
Declaration
public virtual IReadOnlyList<SqlExpression> Expressions { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<><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(IReadOnlyList<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 PostgresNewArrayExpression Update(IReadOnlyList<SqlExpression> expressions)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyList<><SqlExpression> | expressions | The values to initialize the elements of the new array. |
Returns
Type | Description |
---|---|
PostgresNewArrayExpression | 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 |