Share via


NonQueryExpression Class

Definition

An expression that contains a non-query expression. The result of a non-query expression is typically the number of rows affected.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public class NonQueryExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression
type NonQueryExpression = class
    inherit Expression
    interface IPrintableExpression
Public Class NonQueryExpression
Inherits Expression
Implements IPrintableExpression
Inheritance
NonQueryExpression
Implements

Remarks

See Implementation of database providers and extensions and How EF Core queries work for more information and examples.

Constructors

NonQueryExpression(DeleteExpression)

Creates a new instance of the NonQueryExpression class with associated delete expression.

NonQueryExpression(Expression, CommandSource)

Creates a new instance of the NonQueryExpression class with associated query expression and command source.

NonQueryExpression(UpdateExpression)

Creates a new instance of the NonQueryExpression class with associated update expression.

Properties

CommandSource

The command source to use for this non-query operation.

Expression

An expression representing the non-query operation to be run against server.

NodeType

Gets the node type of this Expression.

Type

Gets the static type of the expression that this Expression represents.

Methods

Equals(Object) System.Linq.Expressions.Expression.Equals(System.Object)
GetHashCode() System.Linq.Expressions.Expression.GetHashCode
Print(ExpressionPrinter)

Creates a printable string representation of the given expression using ExpressionPrinter.

Update(Expression)

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.

VisitChildren(ExpressionVisitor)

Reduces the node and then calls the visitor delegate on the reduced expression. The method throws an exception if the node is not reducible.

Applies to