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

(继承自 ReaderModificationCommandBatch)
Dependencies

此服务的关系提供程序特定的依赖项。

(继承自 ReaderModificationCommandBatch)
IsCommandTextEmpty

是否已将任何 SQL 添加到批处理命令文本。

(继承自 ReaderModificationCommandBatch)
LastCachedCommandIndex

为其生成命令文本的最后一个命令的序号。

(继承自 ReaderModificationCommandBatch)
MaxBatchSize

可添加到单个批处理的最大实例数 ModificationCommand

(继承自 ReaderModificationCommandBatch)
ModificationCommands

批处理中的概念性插入/更新/删除 ModificationCommands的列表。

(继承自 ReaderModificationCommandBatch)
ParameterValues

获取批处理中命令的参数值。

(继承自 ReaderModificationCommandBatch)
RelationalCommandBuilder

获取批处理中命令的关系命令生成器。

(继承自 ReaderModificationCommandBatch)
RequiresTransaction

指示批处理是否需要事务才能正确执行。

(继承自 ReaderModificationCommandBatch)
ResultSetMappings

ResultSetMapping每个命令的 ModificationCommands

(继承自 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)

适用于