共用方式為


ReaderModificationCommandBatch 類別

定義

使用資料讀取器的實作基類 ModificationCommandBatch

此類型通常是由資料庫提供者使用;它通常不會用於應用程式程式碼中。

public abstract class ReaderModificationCommandBatch : Microsoft.EntityFrameworkCore.Update.ModificationCommandBatch
type ReaderModificationCommandBatch = class
    inherit ModificationCommandBatch
Public MustInherit Class ReaderModificationCommandBatch
Inherits ModificationCommandBatch
繼承
ReaderModificationCommandBatch
衍生

備註

如需詳細資訊 和範例,請參閱資料庫提供者和延伸模組的實作

建構函式

ReaderModificationCommandBatch(IRelationalCommandBuilderFactory, ISqlGenerationHelper, IUpdateSqlGenerator, IRelationalValueBufferFactoryFactory)

建立新的 ReaderModificationCommandBatch 執行個體。

ReaderModificationCommandBatch(ModificationCommandBatchFactoryDependencies)

建立新的 ReaderModificationCommandBatch 執行個體。

ReaderModificationCommandBatch(ModificationCommandBatchFactoryDependencies, Nullable<Int32>)

建立新的 ReaderModificationCommandBatch 執行個體。

屬性

AreMoreBatchesExpected

指出此批次之後是否預期有更多批次。

AreMoreBatchesExpected

指出此批次之後是否預期有更多批次。

(繼承來源 ModificationCommandBatch)
CachedCommandText

取得或設定批次中命令的快取命令文字。

CommandResultSet

ResultSetMapping 每個命令的 ModificationCommands s。

Dependencies

此服務的關聯式提供者特定相依性。

IsCommandTextEmpty

是否已將任何 SQL 新增至批次命令文字。

LastCachedCommandIndex

建置命令文字的最後一個命令序數。

MaxBatchSize

可以新增至單一批次的 ModificationCommand 實例數目上限。

ModificationCommands

批次中的概念性插入/更新/刪除 ModificationCommands 清單。

ParameterValues

取得批次中命令的參數值。

RelationalCommandBuilder

取得批次中命令的關聯式命令產生器。

RequiresTransaction

指出批次是否需要交易才能正確執行。

RequiresTransaction

指出批次是否需要交易才能正確執行。

(繼承來源 ModificationCommandBatch)
ResultSetMappings

ResultSetMapping 每個命令的 ModificationCommands s。

SqlBuilder

取得批次中命令的命令文字產生器。

SqlGenerationHelper

SQL 產生的協助程式。

StoreCommand

呼叫 時 Complete(Boolean) ,從這個批次產生的 store 命令。

UpdateSqlGenerator

更新 SQL 產生器。

方法

AddCommand(IReadOnlyModificationCommand)

在清單中指定位置 ModificationCommands 新增命令更新命令的命令文字。

AddCommand(IReadOnlyModificationCommand)

將指定的插入/更新/刪除 ModificationCommands 新增至批次。

(繼承來源 ModificationCommandBatch)
AddCommand(ModificationCommand)

將指定的插入/更新/刪除 ModificationCommands 新增至批次。

AddCommand(ModificationCommand)

將指定的插入/更新/刪除 ModificationCommands 新增至批次。

(繼承來源 ModificationCommandBatch)
AddParameter(IColumnModification)

將給定 columnModification 的參數新增至針對此批次所建置的關聯式命令。

AddParameters(IReadOnlyModificationCommand)

將指定 modificationCommand 中所有資料行修改的參數新增至針對此批次所建置的關聯式命令。

CanAddCommand(IReadOnlyModificationCommand)

檢查是否可以將新的命令新增至批次。

CanAddCommand(ModificationCommand)

檢查是否可以將新的命令新增至批次。

Complete(Boolean)

表示不會再將命令新增至此批次,並準備執行。

Complete(Boolean)

表示不會再將命令新增至此批次,並準備執行。

(繼承來源 ModificationCommandBatch)
Consume(DbDataReader)

使用資料讀取器的實作基類 ModificationCommandBatch

此類型通常是由資料庫提供者使用;它通常不會用於應用程式程式碼中。

Consume(RelationalDataReader)

取用 所 Execute(IRelationalConnection) 建立的資料讀取器。

ConsumeAsync(DbDataReader, CancellationToken)

使用資料讀取器的實作基類 ModificationCommandBatch

此類型通常是由資料庫提供者使用;它通常不會用於應用程式程式碼中。

ConsumeAsync(RelationalDataReader, CancellationToken)

取用 所 ExecuteAsync(IRelationalConnection, CancellationToken) 建立的資料讀取器。

CreateStoreCommand()

產生 RawSqlCommand 批次的 。

CreateValueBufferFactory(IReadOnlyList<ColumnModification>)

IRelationalValueBufferFactory建立將用來建立 ValueBuffer 以取用資料讀取器的 。

CreateValueBufferFactory(IReadOnlyList<IColumnModification>)

IRelationalValueBufferFactory建立將用來建立 ValueBuffer 以取用資料讀取器的 。

Execute(IRelationalConnection)

使用指定的連接,針對資料庫執行這個批次所產生的命令。

ExecuteAsync(IRelationalConnection, CancellationToken)

使用指定的連接,針對資料庫執行這個批次所產生的命令。

GetCommandText()

取得目前批次中所有命令的命令文字,並在 上 CachedCommandText 快取它。

GetParameterCount()

取得批次所需的參數總數。

IsCommandTextValid()

檢查命令文字是否有效。

IsValid()

檢查命令文字是否有效。

ResetCommandText()

重設建立器以開始建置新的批次。

RollbackLastCommand(IReadOnlyModificationCommand)

回復新增的最後一個命令。 新增命令導致批次變成無效 (,例如 CommandText 太長) 時使用。

SetRequiresTransaction(Boolean)

設定批次是否需要交易才能正確執行。

TryAddCommand(IReadOnlyModificationCommand)

嘗試將指定的插入/更新/刪除 modificationCommand 新增至批次。

TryAddCommand(IReadOnlyModificationCommand)

嘗試將指定的插入/更新/刪除 modificationCommand 新增至批次。

(繼承來源 ModificationCommandBatch)
UpdateCachedCommandText(Int32)

更新位於清單中指定位置之命令的 ModificationCommands 命令文字。

適用於