AffectedCountModificationCommandBatch.ConsumeResultSetWithRowsAffectedOnly Method

Definition

Consumes the data reader created by Execute(IRelationalConnection) without propagating values back into the ModificationCommand.

C#
protected virtual int ConsumeResultSetWithRowsAffectedOnly (int commandIndex, Microsoft.EntityFrameworkCore.Storage.RelationalDataReader reader);

Parameters

commandIndex
Int32

The ordinal of the command being consumed.

reader
RelationalDataReader

The data reader.

Returns

The ordinal of the next command that must be consumed.

Applies to

Product Versions
Entity Framework Core 7.0, 8.0, 9.0