Search Results for

    Show / Hide Table of Contents

    Class PostgresDeleteExpression

    An SQL expression that represents a PostgreSQL DELETE operation.

    Inheritance
    object
    PostgresDeleteExpression
    Implements
    IPrintableExpression
    Namespace: Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal
    Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
    Syntax
    public sealed class PostgresDeleteExpression : Expression, IPrintableExpression

    Constructors

    | Improve this Doc View Source

    PostgresDeleteExpression(TableExpression, IReadOnlyList<TableExpressionBase>, SqlExpression?, ISet<string>)

    Creates a new instance of the PostgresDeleteExpression class.

    Declaration
    public PostgresDeleteExpression(TableExpression table, IReadOnlyList<TableExpressionBase> fromItems, SqlExpression? predicate, ISet<string> tags)
    Parameters
    Type Name Description
    TableExpression table
    IReadOnlyList<><TableExpressionBase> fromItems
    SqlExpression? predicate
    ISet<><string> tags

    Properties

    | Improve this Doc View Source

    FromItems

    Additional tables which can be referenced in the predicate.

    Declaration
    public IReadOnlyList<TableExpressionBase> FromItems { get; }
    Property Value
    Type Description
    IReadOnlyList<><TableExpressionBase>
    | Improve this Doc View Source

    NodeType

    Declaration
    public override ExpressionType NodeType { get; }
    Property Value
    Type Description
    ExpressionType
    | Improve this Doc View Source

    Predicate

    The WHERE predicate for the DELETE.

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

    Table

    The tables that rows are to be deleted from.

    Declaration
    public TableExpression Table { get; }
    Property Value
    Type Description
    TableExpression
    | Improve this Doc View Source

    Tags

    The list of tags applied to this .

    Declaration
    public ISet<string> Tags { get; }
    Property Value
    Type Description
    ISet<><string>
    | Improve this Doc View Source

    Type

    Declaration
    public override Type Type { get; }
    Property Value
    Type Description
    Type

    Methods

    | 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
    public void Print(ExpressionPrinter expressionPrinter)
    Parameters
    Type Name Description
    ExpressionPrinter expressionPrinter
    | Improve this Doc View Source

    Update(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 PostgresDeleteExpression Update(SqlExpression? predicate)
    Parameters
    Type Name Description
    SqlExpression? predicate

    The Predicate property of the result.

    Returns
    Type Description
    PostgresDeleteExpression
    | 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

    IPrintableExpression
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team