OleDbDataAdapter Constructor (OleDbCommand^)
Initializes a new instance of the OleDbDataAdapter class with the specified OleDbCommand as the SelectCommand property.
Assembly: System.Data (in System.Data.dll)
Parameters
- selectCommand
-
Type:
System.Data.OleDb::OleDbCommand^
An OleDbCommand that is a SELECT statement or stored procedure, and is set as the SelectCommand property of the OleDbDataAdapter.
This implementation of the OleDbDataAdapter constructor sets the SelectCommand property to the value specified in the selectCommand parameter.
When you create an instance of OleDbDataAdapter, the following read/write properties are set to the following initial values.
Properties | Initial value |
|---|---|
MissingMappingAction.Passthrough | |
MissingSchemaAction.Add |
You can change the value of any of these properties through a separate call to the property.
The following example creates an OleDbDataAdapter and sets some of its properties.
Available since 1.1