Represents a set of data commands and a database connection that are used to fill the DataSet and update the data source.
For a list of all members of this type, see SqlCeDataAdapter Members.
[Visual Basic] NotInheritable Public Class SqlCeDataAdapter Inherits DbDataAdapter Implements IDbDataAdapter [C#] public sealed class SqlCeDataAdapter : DbDataAdapter, IDbDataAdapter [C++] public __gc __sealed class SqlCeDataAdapter : public DbDataAdapter, IDbDataAdapter [JScript] public class SqlCeDataAdapter extends DbDataAdapter implements IDbDataAdapter
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
The SqlCeDataAdapter serves as a bridge between a DataSet and data source for retrieving and saving data. The SqlCeDataAdapter provides this bridge by using Fill to load data from the data source into the DataSet, and using Update to send changes made in the DataSet back to the data source.
When the SqlCeDataAdapter fills a DataSet, it will create the necessary tables and columns for the returned data if they do not already exist. However, primary key information will not be included in the implicitly created schema unless the MissingSchemaAction property is set to AddWithKey. You may also have the SqlCeDataAdapter create the schema of the DataSet, including primary key information, before filling it with data using FillSchema.
When you create an instance of SqlCeDataAdapter, properties are set to their initial values. For a list of these values, see the SqlCeDataAdapter constructor.
Platforms: .NET Compact Framework
Assembly: System.Data.Sqlserverce (in System.Data.Sqlserverce.dll)