AffectedCountModificationCommandBatch AffectedCountModificationCommandBatch Class

A ReaderModificationCommandBatch for providers which append an SQL query to find out how many rows were affected (see AppendSelectAffectedCountCommand(StringBuilder, String, String, Int32)).

Syntax

Declaration

public abstract class AffectedCountModificationCommandBatch : ReaderModificationCommandBatchPublic MustInherit Class AffectedCountModificationCommandBatch
    Inherits ReaderModificationCommandBatch

Inheritance Hierarchy

Inherited Members

CachedCommandText,
CachedCommandText,
LastCachedCommandIndex,
LastCachedCommandIndex,
SqlGenerationHelper,
SqlGenerationHelper,
UpdateSqlGenerator,
UpdateSqlGenerator,
ModificationCommands,
ModificationCommands,
CommandResultSet,
CommandResultSet,
AddCommand(ModificationCommand),
AddCommand(ModificationCommand),
ResetCommandText(),
ResetCommandText(),
CanAddCommand(ModificationCommand),
CanAddCommand(ModificationCommand),
IsCommandTextValid(),
IsCommandTextValid(),
GetCommandText(),
GetCommandText(),
UpdateCachedCommandText(Int32),
UpdateCachedCommandText(Int32),
GetParameterCount(),
GetParameterCount(),
CreateStoreCommand(),
CreateStoreCommand(),
Execute(IRelationalConnection),
Execute(IRelationalConnection),
ExecuteAsync(IRelationalConnection, CancellationToken),
ExecuteAsync(IRelationalConnection, CancellationToken),
CreateValueBufferFactory(IReadOnlyList<ColumnModification>),
CreateValueBufferFactory(IReadOnlyList(Of ColumnModification)),
ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Constructors summary

Methods summary

Constructors

  • AffectedCountModificationCommandBatch(IRelationalCommandBuilderFactory, ISqlGenerationHelper, IUpdateSqlGenerator, IRelationalValueBufferFactoryFactory)
    AffectedCountModificationCommandBatch(IRelationalCommandBuilderFactory, ISqlGenerationHelper, IUpdateSqlGenerator, IRelationalValueBufferFactoryFactory)
    protected AffectedCountModificationCommandBatch(IRelationalCommandBuilderFactory commandBuilderFactory, ISqlGenerationHelper sqlGenerationHelper, IUpdateSqlGenerator updateSqlGenerator, IRelationalValueBufferFactoryFactory valueBufferFactoryFactory)Protected Sub New(commandBuilderFactory As IRelationalCommandBuilderFactory, sqlGenerationHelper As ISqlGenerationHelper, updateSqlGenerator As IUpdateSqlGenerator, valueBufferFactoryFactory As IRelationalValueBufferFactoryFactory)

    Parameters

Methods

  • Consume(DbDataReader)
    Consume(DbDataReader)
    protected override void Consume(DbDataReader reader)Protected Overrides Sub Consume(reader As DbDataReader)

    Parameters

    • reader
      System.Data.Common.DbDataReader
      System.Data.Common.DbDataReader
  • ConsumeAsync(DbDataReader, CancellationToken)
    ConsumeAsync(DbDataReader, CancellationToken)
    protected override Task ConsumeAsync(DbDataReader reader, CancellationToken cancellationToken = null)Protected Overrides Function ConsumeAsync(reader As DbDataReader, cancellationToken As CancellationToken = Nothing) As Task

    Parameters

    • reader
      System.Data.Common.DbDataReader
      System.Data.Common.DbDataReader
    • cancellationToken
      System.Threading.CancellationToken
      System.Threading.CancellationToken

    Returns

    • System.Threading.Tasks.Task
      System.Threading.Tasks.Task
  • ConsumeResultSetWithoutPropagation(Int32, DbDataReader)
    ConsumeResultSetWithoutPropagation(Int32, DbDataReader)
    protected virtual int ConsumeResultSetWithoutPropagation(int commandIndex, DbDataReader reader)Protected Overridable Function ConsumeResultSetWithoutPropagation(commandIndex As Integer, reader As DbDataReader) As Integer

    Parameters

    • commandIndex
      System.Int32
      System.Int32
    • reader
      System.Data.Common.DbDataReader
      System.Data.Common.DbDataReader

    Returns

    • System.Int32
      System.Int32
  • ConsumeResultSetWithoutPropagationAsync(Int32, DbDataReader, CancellationToken)
    ConsumeResultSetWithoutPropagationAsync(Int32, DbDataReader, CancellationToken)
    protected virtual Task<int> ConsumeResultSetWithoutPropagationAsync(int commandIndex, DbDataReader reader, CancellationToken cancellationToken)Protected Overridable Function ConsumeResultSetWithoutPropagationAsync(commandIndex As Integer, reader As DbDataReader, cancellationToken As CancellationToken) As Task(Of Integer)

    Parameters

    • commandIndex
      System.Int32
      System.Int32
    • reader
      System.Data.Common.DbDataReader
      System.Data.Common.DbDataReader
    • cancellationToken
      System.Threading.CancellationToken
      System.Threading.CancellationToken

    Returns

    • System.Threading.Tasks.Task<TResult><System.Int32>
      System.Threading.Tasks.Task<TResult>(Of System.Int32)
  • ConsumeResultSetWithPropagation(Int32, DbDataReader)
    ConsumeResultSetWithPropagation(Int32, DbDataReader)
    protected virtual int ConsumeResultSetWithPropagation(int commandIndex, DbDataReader reader)Protected Overridable Function ConsumeResultSetWithPropagation(commandIndex As Integer, reader As DbDataReader) As Integer

    Parameters

    • commandIndex
      System.Int32
      System.Int32
    • reader
      System.Data.Common.DbDataReader
      System.Data.Common.DbDataReader

    Returns

    • System.Int32
      System.Int32
  • ConsumeResultSetWithPropagationAsync(Int32, DbDataReader, CancellationToken)
    ConsumeResultSetWithPropagationAsync(Int32, DbDataReader, CancellationToken)
    protected virtual Task<int> ConsumeResultSetWithPropagationAsync(int commandIndex, DbDataReader reader, CancellationToken cancellationToken)Protected Overridable Function ConsumeResultSetWithPropagationAsync(commandIndex As Integer, reader As DbDataReader, cancellationToken As CancellationToken) As Task(Of Integer)

    Parameters

    • commandIndex
      System.Int32
      System.Int32
    • reader
      System.Data.Common.DbDataReader
      System.Data.Common.DbDataReader
    • cancellationToken
      System.Threading.CancellationToken
      System.Threading.CancellationToken

    Returns

    • System.Threading.Tasks.Task<TResult><System.Int32>
      System.Threading.Tasks.Task<TResult>(Of System.Int32)
  • ThrowAggregateUpdateConcurrencyException(Int32, Int32, Int32)
    ThrowAggregateUpdateConcurrencyException(Int32, Int32, Int32)
    protected virtual void ThrowAggregateUpdateConcurrencyException(int commandIndex, int expectedRowsAffected, int rowsAffected)Protected Overridable Sub ThrowAggregateUpdateConcurrencyException(commandIndex As Integer, expectedRowsAffected As Integer, rowsAffected As Integer)

    Parameters

    • commandIndex
      System.Int32
      System.Int32
    • expectedRowsAffected
      System.Int32
      System.Int32
    • rowsAffected
      System.Int32
      System.Int32

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.dll