SqlCeDataAdapter Constructor (SqlCeCommand)
Initializes a new instance of the SqlCeDataAdapter class with the specified SqlCeCommand as the SelectCommand property.
Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)
Syntax
'Declaration
Public Sub New ( _
selectCommand As SqlCeCommand _
)
'Usage
Dim selectCommand As SqlCeCommand
Dim instance As New SqlCeDataAdapter(selectCommand)
public SqlCeDataAdapter(
SqlCeCommand selectCommand
)
public:
SqlCeDataAdapter(
SqlCeCommand^ selectCommand
)
new :
selectCommand:SqlCeCommand -> SqlCeDataAdapter
public function SqlCeDataAdapter(
selectCommand : SqlCeCommand
)
Parameters
- selectCommand
Type: System.Data.SqlServerCe.SqlCeCommand
A SqlCeCommand that is a SELECT statement. This SqlCeCommand is set as the SelectCommand property of the SqlCeDataAdapter.
Remarks
This version of the constructor sets the SelectCommand property to the value specified in the selectCommand parameter.
When you create an instance of SqlCeDataAdapter, 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 by making a separate call to that property.
Examples
The following example creates a SqlCeDataAdapter by passing in a SqlCeCommand object.