Επεξεργασία

Κοινή χρήση μέσω


DbDataAdapter Constructors

Definition

Initializes a new instance of the DataAdapter class.

Overloads

DbDataAdapter()

Initializes a new instance of a DataAdapter class.

DbDataAdapter(DbDataAdapter)

Initializes a new instance of the DataAdapter class from an existing object of the same type.

DbDataAdapter()

Source:
DbDataAdapter.cs
Source:
DbDataAdapter.cs
Source:
DbDataAdapter.cs

Initializes a new instance of a DataAdapter class.

protected:
 DbDataAdapter();
protected DbDataAdapter ();
Protected Sub New ()

Remarks

When you create an instance of DbDataAdapter, the following read/write properties are set to the following initial values.

Properties Initial value
SelectCommand A new IDbCommand.
InsertCommand A new IDbCommand.
DeleteCommand A new IDbCommand.
UpdateCommand 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.

See also

Applies to

DbDataAdapter(DbDataAdapter)

Source:
DbDataAdapter.cs
Source:
DbDataAdapter.cs
Source:
DbDataAdapter.cs

Initializes a new instance of the 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)

Parameters

adapter
DbDataAdapter

A DataAdapter object used to create the new DataAdapter.

Remarks

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.

See also

Applies to