SqlCeDataAdapter Constructor (String, SqlCeConnection)
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.
Inintializes a new instance of the SqlCeDataAdapter class with a SelectCommand and a SqlCeConnection object.
[Visual Basic] Public Sub New( _ ByVal selectCommandText As String, _ ByVal selectConnection As SqlCeConnection _ ) [C#] public SqlCeDataAdapter( string selectCommandText,SqlCeConnection selectConnection ); [C++] public: SqlCeDataAdapter( String* selectCommandText,SqlCeConnection* selectConnection ); [JScript] public function SqlCeDataAdapter( selectCommandText : String, selectConnection : SqlCeConnection);
Parameters
- selectCommandText
A String that is an SQL SELECT statement to be used as the CommandText of the SelectCommand property of the SqlCeDataAdapter. - selectConnection
A SqlCeConnection that represents the connection.
Remarks
This implementation of the SqlCeDataAdapter opens and closes a SqlCeConnection if it is not already open. This can be useful in an application that must call the Fill method for two or more SqlCeDataAdapter objects. If the SqlCeConnection is already open, you must explicitly call Close or Dispose to close it.
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 either of these properties through a separate call to the property.
Requirements
Platforms: .NET Compact Framework
.NET Framework Security:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code
See Also
SqlCeDataAdapter Class | SqlCeDataAdapter Members | System.Data.SqlServerCe Namespace | SqlCeDataAdapter Constructor Overload List | MissingMappingAction | MissingSchemaAction
Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.