AffectedCountModificationCommandBatch AffectedCountModificationCommandBatch Class

Definition

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

public abstract class AffectedCountModificationCommandBatch : ReaderModificationCommandBatch
Public MustInherit Class AffectedCountModificationCommandBatch
    Inherits ReaderModificationCommandBatch
Inheritance
System.ObjectSystem.Object
AffectedCountModificationCommandBatchAffectedCountModificationCommandBatch

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

AddCommand(ModificationCommand) AddCommand(ModificationCommand)

CanAddCommand(ModificationCommand) CanAddCommand(ModificationCommand)

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
Overrides

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
Overrides

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<System.Int32> System.Threading.Tasks.Task(Of System.Int32)

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<System.Int32> System.Threading.Tasks.Task(Of System.Int32)

CreateStoreCommand() CreateStoreCommand()

CreateValueBufferFactory(IReadOnlyList) CreateValueBufferFactory(IReadOnlyList(Of ColumnModification))

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

Execute(IRelationalConnection) Execute(IRelationalConnection)

ExecuteAsync(IRelationalConnection, CancellationToken) ExecuteAsync(IRelationalConnection, CancellationToken)

GetCommandText() GetCommandText()

GetHashCode() GetHashCode()

Inherited from System.Object

GetParameterCount() GetParameterCount()

GetType() GetType()

Inherited from System.Object

IsCommandTextValid() IsCommandTextValid()

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ResetCommandText() ResetCommandText()

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

ToString() ToString()

Inherited from System.Object

UpdateCachedCommandText(Int32) UpdateCachedCommandText(Int32)

Properties

CachedCommandText CachedCommandText

CommandResultSet CommandResultSet

LastCachedCommandIndex LastCachedCommandIndex

ModificationCommands ModificationCommands

SqlGenerationHelper SqlGenerationHelper

UpdateSqlGenerator UpdateSqlGenerator