DbDataAdapter 成员

帮助实现 IDbDataAdapter 接口。DbDataAdapter 的继承者实现一组函数以提供强类型,但是继承了完全实现 DataAdapter 所需的大部分功能。

下表列出了由 DbDataAdapter 类型公开的成员。

受保护的构造函数

  名称 说明
Protected method Supported by the .NET Compact Framework DbDataAdapter 已重载。初始化 DataAdapter 类的新实例。

页首

公共字段

  名称 说明
Public field Static Supported by the .NET Compact Framework DefaultSourceTableName DataAdapter 对象用于表映射的默认名称。

页首

公共属性

(请参见 受保护的属性 )

  名称 说明
Public property Supported by the .NET Compact Framework AcceptChangesDuringFill  获取或设置一个值,该值指示在任何 Fill 操作过程中,在将 AcceptChanges 添加到 DataTable 之后是否在 DataRow 上调用它。(从 DataAdapter 继承。)
Public property Supported by the .NET Compact Framework AcceptChangesDuringUpdate  获取或设置在 Update 期间是否调用 AcceptChanges。(从 DataAdapter 继承。)
Public property Container  获取 IContainer,它包含 Component。(从 Component 继承。)
Public property Supported by the .NET Compact Framework ContinueUpdateOnError  获取或设置一个值,该值指定在行更新过程中遇到错误时是否生成异常。(从 DataAdapter 继承。)
Public property Supported by the .NET Compact Framework DeleteCommand 获取或设置用于从数据集中删除记录的命令。
Public property Supported by the .NET Compact Framework FillLoadOption  获取或设置 LoadOption,后者确定适配器如何从 DbDataReader 中填充 DataTable。(从 DataAdapter 继承。)
Public property Supported by the .NET Compact Framework InsertCommand 获取或设置用于将新记录插入到数据源中的命令。
Public property Supported by the .NET Compact Framework MissingMappingAction  确定传入数据没有匹配的表或列时需要执行的操作。(从 DataAdapter 继承。)
Public property Supported by the .NET Compact Framework MissingSchemaAction  确定现有 DataSet 架构与传入数据不匹配时需要执行的操作。(从 DataAdapter 继承。)
Public property Supported by the .NET Compact Framework ReturnProviderSpecificTypes  获取或设置 Fill 方法是应当返回提供程序特定的值,还是返回公用的符合 CLS 的值。(从 DataAdapter 继承。)
Public property Supported by the .NET Compact Framework SelectCommand 获取或设置用于在数据源中选择记录的命令。
Public property Supported by the .NET Compact Framework Site  获取或设置 ComponentISite。(从 Component 继承。)
Public property Supported by the .NET Compact Framework TableMappings  获取一个集合,它提供源表和 DataTable 之间的主映射。(从 DataAdapter 继承。)
Public property Supported by the .NET Compact Framework UpdateBatchSize 获取或设置一个值,该值启用或禁用批处理支持,并指定可以批处理执行的命令的数目。
Public property Supported by the .NET Compact Framework UpdateCommand 获取或设置用于更新数据源中的记录的命令。

页首

受保护的属性

  名称 说明
Protected property CanRaiseEvents  获取一个指示组件是否可以引发事件的值。(从 Component 继承。)
Protected property DesignMode  获取一个值,用以指示 Component 当前是否处于设计模式。(从 Component 继承。)
Protected property Supported by the .NET Compact Framework Events  获取附加到此 Component 的事件处理程序的列表。(从 Component 继承。)
Protected property Supported by the .NET Compact Framework FillCommandBehavior 获取或设置用于填充数据适配器的命令的行为。

页首

公共方法

(请参见 受保护的方法 )

  名称 说明
Public method CreateObjRef  创建一个对象,该对象包含生成用于与远程对象进行通信的代理所需的全部相关信息。 (从 MarshalByRefObject 继承。)
Public method Supported by the .NET Compact Framework Dispose 已重载。 释放 DbDataAdapter 使用的非托管资源。
Public method Supported by the .NET Compact Framework Equals  已重载。 确定两个 Object 实例是否相等。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework Fill 已重载。 已重写。 填充 DataSetDataTable
Public method Supported by the .NET Compact Framework FillSchema 已重载。 已重写。 将 DataTable 添加到 DataSet 中,并配置架构以匹配数据源中的架构。
Public method Supported by the .NET Compact Framework GetFillParameters 已重写。 获取当执行 SQL SELECT 语句时由用户设置的参数。
Public method Supported by the .NET Compact Framework GetHashCode  用作特定类型的哈希函数。GetHashCode 适合在哈希算法和数据结构(如哈希表)中使用。 (从 Object 继承。)
Public method GetLifetimeService  检索控制此实例的生存期策略的当前生存期服务对象。 (从 MarshalByRefObject 继承。)
Public method Supported by the .NET Compact Framework GetType  获取当前实例的 Type。 (从 Object 继承。)
Public method InitializeLifetimeService  获取控制此实例的生存期策略的生存期服务对象。 (从 MarshalByRefObject 继承。)
Public method Static Supported by the .NET Compact Framework ReferenceEquals  确定指定的 Object 实例是否是相同的实例。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework ResetFillLoadOption  FillLoadOption 重置为默认状态,并使 Fill 接受 AcceptChangesDuringFill。 (从 DataAdapter 继承。)
Public method Supported by the .NET Compact Framework ShouldSerializeAcceptChangesDuringFill  确定是否应保持 AcceptChangesDuringFill 属性。 (从 DataAdapter 继承。)
Public method Supported by the .NET Compact Framework ShouldSerializeFillLoadOption  确定是否应保持 FillLoadOption 属性。 (从 DataAdapter 继承。)
Public method Supported by the .NET Compact Framework ToString  返回包含 Component 的名称的 String(如果有)。不应重写此方法。 (从 Component 继承。)
Public method Supported by the .NET Compact Framework Update 已重载。 为 DataSet 中每个已插入、已更新或已删除的行调用相应的 INSERT、UPDATE 或 DELETE 语句。

页首

受保护的方法

  名称 说明
Protected method Supported by the .NET Compact Framework AddToBatch 向当前批处理添加 IDbCommand
Protected method Supported by the .NET Compact Framework ClearBatch 从批处理中移除所有 IDbCommand 对象。
Protected method Supported by the .NET Compact Framework CloneInternals  创建此 DataAdapter 实例的一个副本。 (从 DataAdapter 继承。)
Protected method Supported by the .NET Compact Framework CreateRowUpdatedEvent 初始化 RowUpdatedEventArgs 类的新实例。
Protected method Supported by the .NET Compact Framework CreateRowUpdatingEvent 初始化 RowUpdatingEventArgs 类的新实例。
Protected method Supported by the .NET Compact Framework CreateTableMappings  创建一个新的 DataTableMappingCollection。 (从 DataAdapter 继承。)
Protected method Supported by the .NET Compact Framework Dispose 已重载。 已重写。 释放 DbDataAdapter 使用的非托管资源。
Protected method Supported by the .NET Compact Framework ExecuteBatch 执行当前批处理。
Protected method Supported by the .NET Compact Framework Fill 已重载。 填充 DataSetDataTable
Protected method Supported by the .NET Compact Framework FillSchema 已重载。 将 DataTable 添加到 DataSet 中,并配置架构以匹配数据源中的架构。
Protected method Supported by the .NET Compact Framework Finalize  在通过垃圾回收将 Component 回收之前,释放非托管资源并执行其他清理操作。 (从 Component 继承。)
Protected method Supported by the .NET Compact Framework GetBatchedParameter 从当前批处理中的其中一个命令返回一个 IDataParameter
Protected method GetService  返回一个对象,该对象表示由 Component 或它的 Container 提供的服务。 (从 Component 继承。)
Protected method Supported by the .NET Compact Framework HasTableMappings  指示是否已创建了一个 DataTableMappingCollection。 (从 DataAdapter 继承。)
Protected method Supported by the .NET Compact Framework InitializeBatching 初始化 DbDataAdapter 的批处理。
Protected method Supported by the .NET Compact Framework MemberwiseClone  已重载。 (从 MarshalByRefObject 继承。)
Protected method Supported by the .NET Compact Framework OnFillError  Fill 过程中出现错误时调用。 (从 DataAdapter 继承。)
Protected method Supported by the .NET Compact Framework OnRowUpdated 引发 .NET Framework 数据提供程序的 RowUpdated 事件。
Protected method Supported by the .NET Compact Framework OnRowUpdating 引发 .NET Framework 数据提供程序的 RowUpdating 事件。
Protected method Supported by the .NET Compact Framework ShouldSerializeTableMappings  确定一个或多个 DataTableMapping 对象是否存在,并且它们是否应该是持久的。 (从 DataAdapter 继承。)
Protected method Supported by the .NET Compact Framework TerminateBatching 结束 DbDataAdapter 的批处理。
Protected method Supported by the .NET Compact Framework Update 已重载。 为 DataSet 中每个已插入、已更新或已删除的行调用相应的 INSERT、UPDATE 或 DELETE 语句。

页首

公共事件

  名称 说明
Public event Supported by the .NET Compact Framework Disposed  添加事件处理程序以侦听组件上的 Disposed 事件。(从 Component 继承。)
Public event Supported by the .NET Compact Framework FillError  在填充操作过程中出现错误时返回。(从 DataAdapter 继承。)

页首

显式接口实现

  名称 说明
Explicit interface implementation Method Supported by the .NET Compact Framework System.ICloneable.Clone 有关此成员的说明,请参见 ICloneable.Clone
Explicit interface implementation Property Supported by the .NET Compact Framework System.Data.IDbDataAdapter.DeleteCommand 有关此成员的说明,请参见 IDbDataAdapter.DeleteCommand
Explicit interface implementation Property Supported by the .NET Compact Framework System.Data.IDbDataAdapter.InsertCommand 有关此成员的说明,请参见 IDbDataAdapter.InsertCommand
Explicit interface implementation Property Supported by the .NET Compact Framework System.Data.IDbDataAdapter.SelectCommand 有关此成员的说明,请参见 IDbDataAdapter.SelectCommand
Explicit interface implementation Property Supported by the .NET Compact Framework System.Data.IDbDataAdapter.UpdateCommand 有关此成员的说明,请参见 IDbDataAdapter.UpdateCommand

页首

请参见

参考

DbDataAdapter 类
System.Data.Common 命名空间
DataAdapter 类
IDbCommand 接口
IDbConnection 接口