Share via


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 _
)
public SqlCeDataAdapter (
    SqlCeCommand selectCommand
)
public:
SqlCeDataAdapter (
    SqlCeCommand^ selectCommand
)
public SqlCeDataAdapter (
    SqlCeCommand selectCommand
)
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.

Example

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

Platforms

Development Platforms

Windows Vista, Windows Mobile 5.0, Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Mobile 2003 for Pocket PC, Windows CE 5.0
Version Information
.NET Framework and NET Compact Framework
Supported in 3.5
.NET Framework
Supported in 3.0
.NET Compact Framework and .Net Framework
Supported in 2.0

See Also

Reference

SqlCeDataAdapter Class
SqlCeDataAdapter Members
System.Data.SqlServerCe Namespace
MissingMappingAction
MissingSchemaAction