語言

AffectedCountModificationCommandBatch 類別

定義

A ReaderModificationCommandBatch 代表提供者,回傳數值以查詢受影響的列數。

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

public abstract class AffectedCountModificationCommandBatch : Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch
[System.Runtime.CompilerServices.Nullable(0)]
public abstract class AffectedCountModificationCommandBatch : Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch
type AffectedCountModificationCommandBatch = class
    inherit ReaderModificationCommandBatch
[<System.Runtime.CompilerServices.Nullable(0)>]
type AffectedCountModificationCommandBatch = class
    inherit ReaderModificationCommandBatch
Public MustInherit Class AffectedCountModificationCommandBatch
Inherits ReaderModificationCommandBatch
繼承
AffectedCountModificationCommandBatch
衍生
屬性

備註

更多資訊與範例請參見 資料庫提供者與擴充功能的實作 。

建構函式

名稱 Description
AffectedCountModificationCommandBatch(IRelationalCommandBuilderFactory, ISqlGenerationHelper, IUpdateSqlGenerator, IRelationalValueBufferFactoryFactory)

建立新的 AffectedCountModificationCommandBatch 實例。

AffectedCountModificationCommandBatch(ModificationCommandBatchFactoryDependencies, Nullable<Int32>)

建立新的 AffectedCountModificationCommandBatch 實例。

AffectedCountModificationCommandBatch(ModificationCommandBatchFactoryDependencies)

建立新的 AffectedCountModificationCommandBatch 實例。

屬性

名稱 Description
AreMoreBatchesExpected

表示這批次之後是否還會有更多。

(繼承來源 ReaderModificationCommandBatch)
CachedCommandText

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

(繼承來源 ReaderModificationCommandBatch)
CommandResultSet

每個指令的 ModificationCommandss 在 中。ResultSetMapping

(繼承來源 ReaderModificationCommandBatch)
Dependencies

此服務的關聯提供者專屬相依關係。

(繼承來源 ReaderModificationCommandBatch)
IsCommandTextEmpty

批次指令文本中是否已經加入任何 SQL。

(繼承來源 ReaderModificationCommandBatch)
LastCachedCommandIndex

為最後一個指令所撰寫的指令的序數。

(繼承來源 ReaderModificationCommandBatch)
MaxBatchSize

單一 ModificationCommand 批次中最多可加入的實例數。

(繼承來源 ReaderModificationCommandBatch)
ModificationCommands

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

(繼承來源 ReaderModificationCommandBatch)
ParameterValues

取得批次指令的參數值。

(繼承來源 ReaderModificationCommandBatch)
RelationalCommandBuilder

取得批次指令的關聯式指令建構器。

(繼承來源 ReaderModificationCommandBatch)
RequiresTransaction

表示批次是否需要交易才能正確執行。

(繼承來源 ReaderModificationCommandBatch)
ResultSetMappings

每個指令的 ModificationCommandss 在 中。ResultSetMapping

(繼承來源 ReaderModificationCommandBatch)
SqlBuilder

取得批次指令的指令文字建構器。

(繼承來源 ReaderModificationCommandBatch)
SqlGenerationHelper

一個協助 SQL 產生的工具。

(繼承來源 ReaderModificationCommandBatch)
StoreCommand

當呼叫時,從此批次 Complete(Boolean) 產生的 store 指令。

(繼承來源 ReaderModificationCommandBatch)
UpdateSqlGenerator

更新 SQL 產生器。

(繼承來源 ReaderModificationCommandBatch)

方法

名稱 Description
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)

A ReaderModificationCommandBatch 代表提供者,回傳數值以查詢受影響的列數。

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

Consume(RelationalDataReader)

消耗由 所 Execute(IRelationalConnection)建立的資料讀取器。

ConsumeAsync(DbDataReader, CancellationToken)

A ReaderModificationCommandBatch 代表提供者,回傳數值以查詢受影響的列數。

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

ConsumeAsync(RelationalDataReader, CancellationToken)

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

ConsumeResultSet(Int32, RelationalDataReader)

消耗由 Execute(IRelationalConnection)所建立的資料讀取器,並將值傳回 ModificationCommand。

ConsumeResultSetAsync(Int32, RelationalDataReader, CancellationToken)

消耗由 ExecuteAsync(IRelationalConnection, CancellationToken)所建立的資料讀取器,並將值傳回 ModificationCommand。

ConsumeResultSetWithoutPropagation(Int32, DbDataReader)

A ReaderModificationCommandBatch 代表提供者,回傳數值以查詢受影響的列數。

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

ConsumeResultSetWithoutPropagation(Int32, RelationalDataReader)

消耗由 建立的資料 Execute(IRelationalConnection) 讀取器,且不會將值傳回 ModificationCommand。

ConsumeResultSetWithoutPropagationAsync(Int32, DbDataReader, CancellationToken)

A ReaderModificationCommandBatch 代表提供者,回傳數值以查詢受影響的列數。

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

ConsumeResultSetWithoutPropagationAsync(Int32, RelationalDataReader, CancellationToken)

消耗由 建立的資料 ExecuteAsync(IRelationalConnection, CancellationToken) 讀取器,且不會將值傳回 ModificationCommand。

ConsumeResultSetWithPropagation(Int32, DbDataReader)

A ReaderModificationCommandBatch 代表提供者,回傳數值以查詢受影響的列數。

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

ConsumeResultSetWithPropagation(Int32, RelationalDataReader)

消耗由 Execute(IRelationalConnection)所建立的資料讀取器,並將值傳回 ModificationCommand。

ConsumeResultSetWithPropagationAsync(Int32, DbDataReader, CancellationToken)

A ReaderModificationCommandBatch 代表提供者,回傳數值以查詢受影響的列數。

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

ConsumeResultSetWithPropagationAsync(Int32, RelationalDataReader, CancellationToken)

消耗由 ExecuteAsync(IRelationalConnection, CancellationToken)所建立的資料讀取器,並將值傳回 ModificationCommand。

ConsumeResultSetWithRowsAffectedOnly(Int32, RelationalDataReader)

消耗由 建立的資料 Execute(IRelationalConnection) 讀取器,且不會將值傳回 ModificationCommand。

ConsumeResultSetWithRowsAffectedOnlyAsync(Int32, RelationalDataReader, CancellationToken)

消耗由 建立的資料 ExecuteAsync(IRelationalConnection, CancellationToken) 讀取器,且不會將值傳回 ModificationCommand。

CreateStoreCommand()

為該批次產生 a 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)

適用於