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

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

MissingMappingAction.Passthrough

MissingSchemaAction

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.

See Also

Reference

SqlCeDataAdapter Class

SqlCeDataAdapter Overload

System.Data.SqlServerCe Namespace

MissingMappingAction

MissingSchemaAction