Export (0) Print
Expand All

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)

public SqlCeDataAdapter(
	SqlCeCommand selectCommand
)

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.

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.

The following example creates a SqlCeDataAdapter by passing in a SqlCeCommand object.

Show:
© 2014 Microsoft