共用方式為


AffectedCountModificationCommandBatch 類別

定義

ReaderModificationCommandBatch 用於傳回值的提供者,以找出有多少資料列受到影響。

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

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

備註

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

建構函式

AffectedCountModificationCommandBatch(IRelationalCommandBuilderFactory, ISqlGenerationHelper, IUpdateSqlGenerator, IRelationalValueBufferFactoryFactory)

建立新的 AffectedCountModificationCommandBatch 執行個體。

AffectedCountModificationCommandBatch(ModificationCommandBatchFactoryDependencies)

建立新的 AffectedCountModificationCommandBatch 執行個體。

AffectedCountModificationCommandBatch(ModificationCommandBatchFactoryDependencies, Nullable<Int32>)

建立新的 AffectedCountModificationCommandBatch 執行個體。

屬性

AreMoreBatchesExpected

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

(繼承來源 ReaderModificationCommandBatch)
CachedCommandText

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

(繼承來源 ReaderModificationCommandBatch)
CommandResultSet

ResultSetMapping 每個命令的 ModificationCommands s。

(繼承來源 ReaderModificationCommandBatch)
Dependencies

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

(繼承來源 ReaderModificationCommandBatch)
IsCommandTextEmpty

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

(繼承來源 ReaderModificationCommandBatch)
LastCachedCommandIndex

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

(繼承來源 ReaderModificationCommandBatch)
MaxBatchSize

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

(繼承來源 ReaderModificationCommandBatch)
ModificationCommands

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

(繼承來源 ReaderModificationCommandBatch)
ParameterValues

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

(繼承來源 ReaderModificationCommandBatch)
RelationalCommandBuilder

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

(繼承來源 ReaderModificationCommandBatch)
RequiresTransaction

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

(繼承來源 ReaderModificationCommandBatch)
ResultSetMappings

ResultSetMapping 每個命令的 ModificationCommands s。

(繼承來源 ReaderModificationCommandBatch)
SqlBuilder

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

(繼承來源 ReaderModificationCommandBatch)
SqlGenerationHelper

SQL 產生的協助程式。

(繼承來源 ReaderModificationCommandBatch)
StoreCommand

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

(繼承來源 ReaderModificationCommandBatch)
UpdateSqlGenerator

更新 SQL 產生器。

(繼承來源 ReaderModificationCommandBatch)

方法

AddCommand(IReadOnlyModificationCommand)

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

(繼承來源 ReaderModificationCommandBatch)
AddCommand(ModificationCommand)

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

(繼承來源 ReaderModificationCommandBatch)
AddParameter(IColumnModification)

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

(繼承來源 ReaderModificationCommandBatch)
AddParameters(IReadOnlyModificationCommand)

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

(繼承來源 ReaderModificationCommandBatch)
CanAddCommand(IReadOnlyModificationCommand)

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

(繼承來源 ReaderModificationCommandBatch)
CanAddCommand(ModificationCommand)

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

(繼承來源 ReaderModificationCommandBatch)
Complete(Boolean)

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

(繼承來源 ReaderModificationCommandBatch)
Consume(DbDataReader)

ReaderModificationCommandBatch 用於傳回值的提供者,以找出有多少資料列受到影響。

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

Consume(DbDataReader)

ReaderModificationCommandBatch 用於傳回值的提供者,以找出有多少資料列受到影響。

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

(繼承來源 ReaderModificationCommandBatch)
Consume(RelationalDataReader)

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

Consume(RelationalDataReader)

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

(繼承來源 ReaderModificationCommandBatch)
ConsumeAsync(DbDataReader, CancellationToken)

ReaderModificationCommandBatch 用於傳回值的提供者,以找出有多少資料列受到影響。

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

ConsumeAsync(DbDataReader, CancellationToken)

ReaderModificationCommandBatch 用於傳回值的提供者,以找出有多少資料列受到影響。

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

(繼承來源 ReaderModificationCommandBatch)
ConsumeAsync(RelationalDataReader, CancellationToken)

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

ConsumeAsync(RelationalDataReader, CancellationToken)

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

(繼承來源 ReaderModificationCommandBatch)
ConsumeResultSet(Int32, RelationalDataReader)

取用 所 Execute(IRelationalConnection) 建立的資料讀取器,將值傳播回 ModificationCommand

ConsumeResultSetAsync(Int32, RelationalDataReader, CancellationToken)

取用 所 ExecuteAsync(IRelationalConnection, CancellationToken) 建立的資料讀取器,將值傳播回 ModificationCommand

ConsumeResultSetWithoutPropagation(Int32, DbDataReader)

ReaderModificationCommandBatch 用於傳回值的提供者,以找出有多少資料列受到影響。

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

ConsumeResultSetWithoutPropagation(Int32, RelationalDataReader)

取用 建立 Execute(IRelationalConnection) 的資料讀取器,而不將值傳播回 ModificationCommand

ConsumeResultSetWithoutPropagationAsync(Int32, DbDataReader, CancellationToken)

ReaderModificationCommandBatch 用於傳回值的提供者,以找出有多少資料列受到影響。

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

ConsumeResultSetWithoutPropagationAsync(Int32, RelationalDataReader, CancellationToken)

取用 建立 ExecuteAsync(IRelationalConnection, CancellationToken) 的資料讀取器,而不將值傳播回 ModificationCommand

ConsumeResultSetWithPropagation(Int32, DbDataReader)

ReaderModificationCommandBatch 用於傳回值的提供者,以找出有多少資料列受到影響。

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

ConsumeResultSetWithPropagation(Int32, RelationalDataReader)

取用 所 Execute(IRelationalConnection) 建立的資料讀取器,將值傳播回 ModificationCommand

ConsumeResultSetWithPropagationAsync(Int32, DbDataReader, CancellationToken)

ReaderModificationCommandBatch 用於傳回值的提供者,以找出有多少資料列受到影響。

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

ConsumeResultSetWithPropagationAsync(Int32, RelationalDataReader, CancellationToken)

取用 所 ExecuteAsync(IRelationalConnection, CancellationToken) 建立的資料讀取器,將值傳播回 ModificationCommand

ConsumeResultSetWithRowsAffectedOnly(Int32, RelationalDataReader)

取用 建立 Execute(IRelationalConnection) 的資料讀取器,而不將值傳播回 ModificationCommand

ConsumeResultSetWithRowsAffectedOnlyAsync(Int32, RelationalDataReader, CancellationToken)

取用 建立 ExecuteAsync(IRelationalConnection, CancellationToken) 的資料讀取器,而不將值傳播回 ModificationCommand

CreateStoreCommand()

產生 RawSqlCommand 批次的 。

(繼承來源 ReaderModificationCommandBatch)
CreateValueBufferFactory(IReadOnlyList<ColumnModification>)

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

(繼承來源 ReaderModificationCommandBatch)
CreateValueBufferFactory(IReadOnlyList<IColumnModification>)

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

(繼承來源 ReaderModificationCommandBatch)
Execute(IRelationalConnection)

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

(繼承來源 ReaderModificationCommandBatch)
ExecuteAsync(IRelationalConnection, CancellationToken)

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

(繼承來源 ReaderModificationCommandBatch)
GetCommandText()

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

(繼承來源 ReaderModificationCommandBatch)
GetParameterCount()

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

(繼承來源 ReaderModificationCommandBatch)
IsCommandTextValid()

檢查命令文字是否有效。

(繼承來源 ReaderModificationCommandBatch)
IsValid()

檢查命令文字是否有效。

(繼承來源 ReaderModificationCommandBatch)
ResetCommandText()

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

(繼承來源 ReaderModificationCommandBatch)
RollbackLastCommand(IReadOnlyModificationCommand)

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

(繼承來源 ReaderModificationCommandBatch)
SetRequiresTransaction(Boolean)

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

(繼承來源 ReaderModificationCommandBatch)
ThrowAggregateUpdateConcurrencyException(Int32, Int32, Int32)

擲回例外狀況,指出命令影響非預期的資料列數目。

ThrowAggregateUpdateConcurrencyException(RelationalDataReader, Int32, Int32, Int32)

擲回例外狀況,指出命令影響非預期的資料列數目。

ThrowAggregateUpdateConcurrencyExceptionAsync(RelationalDataReader, Int32, Int32, Int32, CancellationToken)

擲回例外狀況,指出命令影響非預期的資料列數目。

TryAddCommand(IReadOnlyModificationCommand)

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

(繼承來源 ReaderModificationCommandBatch)
UpdateCachedCommandText(Int32)

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

(繼承來源 ReaderModificationCommandBatch)

適用於