Condividi tramite


UpdateExpression Class

Definition

An expression that represents an UPDATE operation in a SQL tree.

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

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

Constructors

UpdateExpression(TableExpression, SelectExpression, IReadOnlyList<ColumnValueSetter>, ISet<String>)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

UpdateExpression(TableExpression, SelectExpression, IReadOnlyList<ColumnValueSetter>)

Creates a new instance of the UpdateExpression class.

Properties

ColumnValueSetters

The list of ColumnValueSetter which specifies columns and their corresponding values to update.

NodeType

Gets the node type of this Expression.

SelectExpression

The select expression which is used to determine which rows to update and to get data from additional tables.

Table

The table on which the update operation is being applied.

Tags

The list of tags applied to this UpdateExpression.

Type

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

Methods

ApplyTags(ISet<String>)

Applies a given set of tags.

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.

Quote()

Quotes the expression; that is, returns an expression that, when evaluated, would construct an expression identical to this one. Used to generate code for precompiled queries, which reconstructs this expression.

Update(SelectExpression, IReadOnlyList<ColumnValueSetter>)

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.

Applies to