DbDataAdapter 构造函数
定义
初始化 DataAdapter 类的新实例。Initializes a new instance of a DataAdapter class.
重载
| DbDataAdapter() |
初始化 DataAdapter 类的新实例。Initializes a new instance of a DataAdapter class. |
| DbDataAdapter(DbDataAdapter) |
从同一类型的现有对象中初始化 |
DbDataAdapter()
初始化 DataAdapter 类的新实例。Initializes a new instance of a DataAdapter class.
protected:
DbDataAdapter();
protected DbDataAdapter ();
Protected Sub New ()
注解
当你创建的实例时 DbDataAdapter ,以下读/写属性将设置为以下初始值。When you create an instance of DbDataAdapter, the following read/write properties are set to the following initial values.
| 属性Properties | 初始值Initial value |
|---|---|
| SelectCommand | 一个新的 IDbCommand。A new IDbCommand. |
| InsertCommand | 一个新的 IDbCommand。A new IDbCommand. |
| DeleteCommand | 一个新的 IDbCommand。A new IDbCommand. |
| UpdateCommand | 一个新的 IDbCommand。A new IDbCommand. |
| MissingMappingAction | MissingMappingAction.Passthrough |
| MissingSchemaAction | MissingSchemaAction.Add |
可以通过单独调用属性来更改任何这些属性的值。You can change the value of any of these properties through a separate call to the property.
适用于
DbDataAdapter(DbDataAdapter)
从同一类型的现有对象中初始化 DataAdapter 类的新实例。Initializes a new instance of a DataAdapter class from an existing object of the same type.
protected:
DbDataAdapter(System::Data::Common::DbDataAdapter ^ adapter);
protected DbDataAdapter (System.Data.Common.DbDataAdapter adapter);
new System.Data.Common.DbDataAdapter : System.Data.Common.DbDataAdapter -> System.Data.Common.DbDataAdapter
Protected Sub New (adapter As DbDataAdapter)
参数
- adapter
- DbDataAdapter
用于创建新 DataAdapter 的 DataAdapter 对象。A DataAdapter object used to create the new DataAdapter.
注解
构造函数的此重载 DbDataAdapter 旨在供 .NET Framework 数据提供程序在实现在克隆实现中使用的类似构造函数时使用。This overload of the DbDataAdapter constructor is designed for use by a .NET Framework data provider when implementing a similar constructor for use in a clone implementation.