Language

SingularModificationCommandBatch クラス

定義

バッチ内のコマンドの数を 1 に制限することでバッチ処理をサポートしない AffectedCountModificationCommandBatch の実装。

通常、この型はデータベース プロバイダーによって使用されます。これは通常、アプリケーション コードでは使用されません。

public class SingularModificationCommandBatch : Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch
type SingularModificationCommandBatch = class
    inherit AffectedCountModificationCommandBatch
Public Class SingularModificationCommandBatch
Inherits AffectedCountModificationCommandBatch
継承

注釈

詳細と例については、 データベース プロバイダーと拡張機能の実装 を参照してください。

コンストラクター

Name 説明
SingularModificationCommandBatch(IRelationalCommandBuilderFactory, ISqlGenerationHelper, IUpdateSqlGenerator, IRelationalValueBufferFactoryFactory)

新しい SingularModificationCommandBatch インスタンスを作成します。

SingularModificationCommandBatch(ModificationCommandBatchFactoryDependencies)

新しい SingularModificationCommandBatch インスタンスを作成します。

プロパティ

Name 説明
AreMoreBatchesExpected

このバッチの後にさらにバッチが必要かどうかを示します。

(継承元 ReaderModificationCommandBatch)
CachedCommandText

バッチ内のコマンドのキャッシュされたコマンド テキストを取得または設定します。

(継承元 ReaderModificationCommandBatch)
CommandResultSet

ModificationCommandsの各コマンドのResultSetMapping。

(継承元 ReaderModificationCommandBatch)
Dependencies

このサービスのリレーショナル プロバイダー固有の依存関係。

(継承元 ReaderModificationCommandBatch)
IsCommandTextEmpty

バッチ コマンド テキストに SQL が既に追加されているかどうか。

(継承元 ReaderModificationCommandBatch)
LastCachedCommandIndex

コマンド テキストが作成された最後のコマンドの序数。

(継承元 ReaderModificationCommandBatch)
MaxBatchSize

1 つのバッチに追加できる ModificationCommand インスタンスの最大数。

(継承元 ReaderModificationCommandBatch)
ModificationCommands

バッチ内の概念的な挿入、更新、削除の ModificationCommandsの一覧。

(継承元 ReaderModificationCommandBatch)
ParameterValues

バッチ内のコマンドのパラメーター値を取得します。

(継承元 ReaderModificationCommandBatch)
RelationalCommandBuilder

バッチ内のコマンドのリレーショナル コマンド ビルダーを取得します。

(継承元 ReaderModificationCommandBatch)
RequiresTransaction

バッチが正しく実行するためにトランザクションを必要とするかどうかを示します。

(継承元 ReaderModificationCommandBatch)
ResultSetMappings

ModificationCommandsの各コマンドのResultSetMapping。

(継承元 ReaderModificationCommandBatch)
SqlBuilder

バッチ内のコマンドのコマンド テキスト ビルダーを取得します。

(継承元 ReaderModificationCommandBatch)
SqlGenerationHelper

SQL 生成のヘルパー。

(継承元 ReaderModificationCommandBatch)
StoreCommand

Complete(Boolean)が呼び出されたときに、このバッチから生成された store コマンド。

(継承元 ReaderModificationCommandBatch)
UpdateSqlGenerator

更新プログラムの SQL ジェネレーター。

(継承元 ReaderModificationCommandBatch)

メソッド

Name 説明
AddCommand(IReadOnlyModificationCommand)

ModificationCommands リスト内の指定した位置にあるコマンドのコマンド テキストを追加します。

(継承元 ReaderModificationCommandBatch)
AddCommand(ModificationCommand)

指定された挿入/更新/削除 ModificationCommands をバッチに追加します。

(継承元 ReaderModificationCommandBatch)
AddParameter(IColumnModification)

このバッチ用にビルドされるリレーショナル コマンドに、指定された columnModification のパラメーターを追加します。

(継承元 ReaderModificationCommandBatch)
AddParameters(IReadOnlyModificationCommand)

指定された modificationCommand 内のすべての列変更のパラメーターを、このバッチ用にビルドされているリレーショナル コマンドに追加します。

(継承元 ReaderModificationCommandBatch)
CanAddCommand(IReadOnlyModificationCommand)

no コマンドが既に追加されている場合にのみ、 true を返します。

CanAddCommand(ModificationCommand)

no コマンドが既に追加されている場合にのみ、 true を返します。

Complete(Boolean)

このバッチに追加されるコマンドがこれ以上ないことを示し、実行用に準備します。

(継承元 ReaderModificationCommandBatch)
Consume(DbDataReader)

バッチ内のコマンドの数を 1 に制限することでバッチ処理をサポートしない AffectedCountModificationCommandBatch の実装。

通常、この型はデータベース プロバイダーによって使用されます。これは通常、アプリケーション コードでは使用されません。

(継承元 AffectedCountModificationCommandBatch)
Consume(RelationalDataReader)

Execute(IRelationalConnection)によって作成されたデータ リーダーを使用します。

(継承元 AffectedCountModificationCommandBatch)
ConsumeAsync(DbDataReader, CancellationToken)

バッチ内のコマンドの数を 1 に制限することでバッチ処理をサポートしない AffectedCountModificationCommandBatch の実装。

通常、この型はデータベース プロバイダーによって使用されます。これは通常、アプリケーション コードでは使用されません。

(継承元 AffectedCountModificationCommandBatch)
ConsumeAsync(RelationalDataReader, CancellationToken)

ExecuteAsync(IRelationalConnection, CancellationToken)によって作成されたデータ リーダーを使用します。

(継承元 AffectedCountModificationCommandBatch)
ConsumeResultSet(Int32, RelationalDataReader)

Execute(IRelationalConnection)によって作成されたデータ リーダーを使用し、値をModificationCommandに反映します。

(継承元 AffectedCountModificationCommandBatch)
ConsumeResultSetAsync(Int32, RelationalDataReader, CancellationToken)

ExecuteAsync(IRelationalConnection, CancellationToken)によって作成されたデータ リーダーを使用し、値をModificationCommandに反映します。

(継承元 AffectedCountModificationCommandBatch)
ConsumeResultSetWithoutPropagation(Int32, DbDataReader)

バッチ内のコマンドの数を 1 に制限することでバッチ処理をサポートしない AffectedCountModificationCommandBatch の実装。

通常、この型はデータベース プロバイダーによって使用されます。これは通常、アプリケーション コードでは使用されません。

(継承元 AffectedCountModificationCommandBatch)
ConsumeResultSetWithoutPropagation(Int32, RelationalDataReader)

値をModificationCommandに反映せずに、Execute(IRelationalConnection)によって作成されたデータ リーダーを使用します。

(継承元 AffectedCountModificationCommandBatch)
ConsumeResultSetWithoutPropagationAsync(Int32, DbDataReader, CancellationToken)

バッチ内のコマンドの数を 1 に制限することでバッチ処理をサポートしない AffectedCountModificationCommandBatch の実装。

通常、この型はデータベース プロバイダーによって使用されます。これは通常、アプリケーション コードでは使用されません。

(継承元 AffectedCountModificationCommandBatch)
ConsumeResultSetWithoutPropagationAsync(Int32, RelationalDataReader, CancellationToken)

値をModificationCommandに反映せずに、ExecuteAsync(IRelationalConnection, CancellationToken)によって作成されたデータ リーダーを使用します。

(継承元 AffectedCountModificationCommandBatch)
ConsumeResultSetWithPropagation(Int32, DbDataReader)

バッチ内のコマンドの数を 1 に制限することでバッチ処理をサポートしない AffectedCountModificationCommandBatch の実装。

通常、この型はデータベース プロバイダーによって使用されます。これは通常、アプリケーション コードでは使用されません。

(継承元 AffectedCountModificationCommandBatch)
ConsumeResultSetWithPropagation(Int32, RelationalDataReader)

Execute(IRelationalConnection)によって作成されたデータ リーダーを使用し、値をModificationCommandに反映します。

(継承元 AffectedCountModificationCommandBatch)
ConsumeResultSetWithPropagationAsync(Int32, DbDataReader, CancellationToken)

バッチ内のコマンドの数を 1 に制限することでバッチ処理をサポートしない AffectedCountModificationCommandBatch の実装。

通常、この型はデータベース プロバイダーによって使用されます。これは通常、アプリケーション コードでは使用されません。

(継承元 AffectedCountModificationCommandBatch)
ConsumeResultSetWithPropagationAsync(Int32, RelationalDataReader, CancellationToken)

ExecuteAsync(IRelationalConnection, CancellationToken)によって作成されたデータ リーダーを使用し、値をModificationCommandに反映します。

(継承元 AffectedCountModificationCommandBatch)
ConsumeResultSetWithRowsAffectedOnly(Int32, RelationalDataReader)

値をModificationCommandに反映せずに、Execute(IRelationalConnection)によって作成されたデータ リーダーを使用します。

(継承元 AffectedCountModificationCommandBatch)
ConsumeResultSetWithRowsAffectedOnlyAsync(Int32, RelationalDataReader, CancellationToken)

値をModificationCommandに反映せずに、ExecuteAsync(IRelationalConnection, CancellationToken)によって作成されたデータ リーダーを使用します。

(継承元 AffectedCountModificationCommandBatch)
CreateStoreCommand()

バッチの RawSqlCommand を生成します。

(継承元 ReaderModificationCommandBatch)
CreateValueBufferFactory(IReadOnlyList<ColumnModification>)

データ リーダーを使用するValueBufferの作成に使用するIRelationalValueBufferFactoryを作成します。

(継承元 ReaderModificationCommandBatch)
CreateValueBufferFactory(IReadOnlyList<IColumnModification>)

データ リーダーを使用するValueBufferの作成に使用するIRelationalValueBufferFactoryを作成します。

(継承元 ReaderModificationCommandBatch)
Execute(IRelationalConnection)

指定された接続を使用して、このバッチによって生成されたコマンドをデータベースに対して実行します。

(継承元 ReaderModificationCommandBatch)
ExecuteAsync(IRelationalConnection, CancellationToken)

指定された接続を使用して、このバッチによって生成されたコマンドをデータベースに対して実行します。

(継承元 ReaderModificationCommandBatch)
GetCommandText()

現在のバッチ内のすべてのコマンドのコマンド テキストを取得し、 CachedCommandTextにもキャッシュします。

(継承元 ReaderModificationCommandBatch)
GetParameterCount()

バッチに必要なパラメーターの合計数を取得します。

(継承元 ReaderModificationCommandBatch)
IsCommandTextValid()

コマンド テキストを有効にする必要があるため、1 つのコマンドのみが生成されるため、 true を返します。

IsValid()

コマンド テキストが有効かどうかを確認します。

(継承元 ReaderModificationCommandBatch)
ResetCommandText()

ビルダーをリセットして、新しいバッチの作成を開始します。

(継承元 ReaderModificationCommandBatch)
RollbackLastCommand(IReadOnlyModificationCommand)

最後に追加したコマンドをロールバックします。 コマンドを追加すると、バッチが無効になる (CommandText が長すぎるなど) ときに使用されます。

(継承元 ReaderModificationCommandBatch)
SetRequiresTransaction(Boolean)

バッチが正しく実行するためにトランザクションを必要とするかどうかを設定します。

(継承元 ReaderModificationCommandBatch)
ThrowAggregateUpdateConcurrencyException(Int32, Int32, Int32)

コマンドが予期しない行数に影響したことを示す例外をスローします。

(継承元 AffectedCountModificationCommandBatch)
ThrowAggregateUpdateConcurrencyException(RelationalDataReader, Int32, Int32, Int32)

コマンドが予期しない行数に影響したことを示す例外をスローします。

(継承元 AffectedCountModificationCommandBatch)
ThrowAggregateUpdateConcurrencyExceptionAsync(RelationalDataReader, Int32, Int32, Int32, CancellationToken)

コマンドが予期しない行数に影響したことを示す例外をスローします。

(継承元 AffectedCountModificationCommandBatch)
TryAddCommand(IReadOnlyModificationCommand)

指定された挿入、更新、削除の modificationCommand をバッチに追加しようとします。

(継承元 ReaderModificationCommandBatch)
UpdateCachedCommandText(Int32)

ModificationCommands リスト内の指定した位置にあるコマンドのコマンド テキストを更新します。

(継承元 ReaderModificationCommandBatch)

適用対象