ReaderModificationCommandBatch ReaderModificationCommandBatch Class

Definition

public abstract class ReaderModificationCommandBatch : ModificationCommandBatch
Public MustInherit Class ReaderModificationCommandBatch
    Inherits ModificationCommandBatch
Inheritance
System.ObjectSystem.Object
ReaderModificationCommandBatchReaderModificationCommandBatch

Inherited Members

System.Object

System.Object.ToString()System.Object.ToString()
System.Object.Equals(System.Object)System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()System.Object.GetHashCode()
System.Object.GetType()System.Object.GetType()
System.Object.MemberwiseClone()System.Object.MemberwiseClone()

Constructors

ReaderModificationCommandBatch(IRelationalCommandBuilderFactory, ISqlGenerationHelper, IUpdateSqlGenerator, IRelationalValueBufferFactoryFactory) ReaderModificationCommandBatch(IRelationalCommandBuilderFactory, ISqlGenerationHelper, IUpdateSqlGenerator, IRelationalValueBufferFactoryFactory)

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

Properties

CachedCommandText CachedCommandText

protected virtual StringBuilder CachedCommandText { get; set; }
Protected Overridable Property CachedCommandText As StringBuilder
Value
System.Text.StringBuilder System.Text.StringBuilder

CommandResultSet CommandResultSet

protected virtual IList<ResultSetMapping> CommandResultSet { get; }
Protected Overridable ReadOnly Property CommandResultSet As IList(Of ResultSetMapping)
Value
System.Collections.Generic.IList<ResultSetMapping> System.Collections.Generic.IList(Of ResultSetMapping)

LastCachedCommandIndex LastCachedCommandIndex

protected virtual int LastCachedCommandIndex { get; set; }
Protected Overridable Property LastCachedCommandIndex As Integer
Value
System.Int32 System.Int32

ModificationCommands ModificationCommands

public override IReadOnlyList<ModificationCommand> ModificationCommands { get; }
Public Overrides ReadOnly Property ModificationCommands As IReadOnlyList(Of ModificationCommand)
Value
System.Collections.Generic.IReadOnlyList<ModificationCommand> System.Collections.Generic.IReadOnlyList(Of ModificationCommand)
Overrides

SqlGenerationHelper SqlGenerationHelper

protected virtual ISqlGenerationHelper SqlGenerationHelper { get; }
Protected Overridable ReadOnly Property SqlGenerationHelper As ISqlGenerationHelper

UpdateSqlGenerator UpdateSqlGenerator

protected virtual IUpdateSqlGenerator UpdateSqlGenerator { get; }
Protected Overridable ReadOnly Property UpdateSqlGenerator As IUpdateSqlGenerator

Methods

AddCommand(ModificationCommand) AddCommand(ModificationCommand)

public override bool AddCommand(ModificationCommand modificationCommand)
Public Overrides Function AddCommand(modificationCommand As ModificationCommand) As Boolean
Parameters
Returns
System.Boolean System.Boolean
Overrides

CanAddCommand(ModificationCommand) CanAddCommand(ModificationCommand)

protected abstract bool CanAddCommand(ModificationCommand modificationCommand)
Protected MustOverride Function CanAddCommand(modificationCommand As ModificationCommand) As Boolean
Parameters
Returns
System.Boolean System.Boolean

Consume(DbDataReader) Consume(DbDataReader)

protected abstract void Consume(DbDataReader reader)
Protected MustOverride Sub Consume(reader As DbDataReader)
Parameters
reader
System.Data.Common.DbDataReader System.Data.Common.DbDataReader

ConsumeAsync(DbDataReader, CancellationToken) ConsumeAsync(DbDataReader, CancellationToken)

protected abstract Task ConsumeAsync(DbDataReader reader, CancellationToken cancellationToken = null)
Protected MustOverride 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

CreateStoreCommand() CreateStoreCommand()

protected virtual RawSqlCommand CreateStoreCommand()
Protected Overridable Function CreateStoreCommand As RawSqlCommand
Returns

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

protected virtual IRelationalValueBufferFactory CreateValueBufferFactory(IReadOnlyList<ColumnModification> columnModifications)
Protected Overridable Function CreateValueBufferFactory(columnModifications As IReadOnlyList(Of ColumnModification)) As IRelationalValueBufferFactory
Parameters
columnModifications
System.Collections.Generic.IReadOnlyList<ColumnModification> System.Collections.Generic.IReadOnlyList(Of ColumnModification)
Returns

Execute(IRelationalConnection) Execute(IRelationalConnection)

public override void Execute(IRelationalConnection connection)
Public Overrides Sub Execute(connection As IRelationalConnection)
Parameters
Overrides

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

public override Task ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken = null)
Public Overrides Function ExecuteAsync(connection As IRelationalConnection, cancellationToken As CancellationToken = Nothing) As Task
Parameters
cancellationToken
System.Threading.CancellationToken System.Threading.CancellationToken
Returns
System.Threading.Tasks.Task System.Threading.Tasks.Task
Overrides

GetCommandText() GetCommandText()

protected virtual string GetCommandText()
Protected Overridable Function GetCommandText As String
Returns
System.String System.String

GetParameterCount() GetParameterCount()

protected virtual int GetParameterCount()
Protected Overridable Function GetParameterCount As Integer
Returns
System.Int32 System.Int32

IsCommandTextValid() IsCommandTextValid()

protected abstract bool IsCommandTextValid()
Protected MustOverride Function IsCommandTextValid As Boolean
Returns
System.Boolean System.Boolean

ResetCommandText() ResetCommandText()

protected virtual void ResetCommandText()
Protected Overridable Sub ResetCommandText

UpdateCachedCommandText(Int32) UpdateCachedCommandText(Int32)

protected virtual void UpdateCachedCommandText(int commandPosition)
Protected Overridable Sub UpdateCachedCommandText(commandPosition As Integer)
Parameters
commandPosition
System.Int32 System.Int32