NonQueryExpression Constructors

Definition

Overloads

NonQueryExpression(DeleteExpression)

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

NonQueryExpression(UpdateExpression)

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

NonQueryExpression(Expression, CommandSource)

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

NonQueryExpression(DeleteExpression)

Source:
NonQueryExpression.cs
Source:
NonQueryExpression.cs
Source:
NonQueryExpression.cs

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

C#
public NonQueryExpression (Microsoft.EntityFrameworkCore.Query.SqlExpressions.DeleteExpression deleteExpression);

Parameters

deleteExpression
DeleteExpression

The delete expression to delete rows on the server.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 7.0, 8.0, 9.0

NonQueryExpression(UpdateExpression)

Source:
NonQueryExpression.cs
Source:
NonQueryExpression.cs
Source:
NonQueryExpression.cs

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

C#
public NonQueryExpression (Microsoft.EntityFrameworkCore.Query.SqlExpressions.UpdateExpression updateExpression);

Parameters

updateExpression
UpdateExpression

The update expression to update rows on the server.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 7.0, 8.0, 9.0

NonQueryExpression(Expression, CommandSource)

Source:
NonQueryExpression.cs
Source:
NonQueryExpression.cs
Source:
NonQueryExpression.cs

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

C#
public NonQueryExpression (System.Linq.Expressions.Expression expression, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);

Parameters

expression
Expression

The expression to affect rows on the server.

commandSource
CommandSource

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

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 7.0, 8.0, 9.0