SqlCeEngine Members
Represents the properties, methods, and other objects of the Engine object. This class cannot be inherited.
The SqlCeEngine type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SqlCeEngine() () () () | Initializes a new instance of the SqlCeEngine class. | |
SqlCeEngine(String) | Initializes a new instance of the SqlCeEngine class with the specified local connection string. |
Top
Methods
Name | Description | |
---|---|---|
Compact(String) | Reclaims wasted space in the database by creating a new database file from the existing file. This method is also used to change the collating order, encryption, or password settings of the database. | |
CreateDatabase() () () () | Creates a new database. | |
Dispose() () () () | Releases all SqlCeEngine resources. | |
Equals(Object) | (inherited from Object) | |
Finalize() () () () | (inherited from Object) | |
GetHashCode() () () () | (inherited from Object) | |
GetType() () () () | (inherited from Object) | |
MemberwiseClone() () () () | (inherited from Object) | |
Repair(String, RepairOption) | Repairs a corrupted database. | |
Shrink() () () () | Reclaims wasted space in the database by moving empty pages to the end of the file, and then truncating the file. | |
ToString() () () () | (inherited from Object) | |
Upgrade() () () () | Upgrades a SQL Server Compact database from version 3.1 to 3.5. After the upgrade, the database will be encrypted if the source database was encrypted. If it was not, the upgraded database will be unencrypted. | |
Upgrade(String) | Upgrades a SQL Server Compact database from version 3.1 to 3.5. The destination database will be encrypted if the encryption mode was specified in the Destination Connection string. The collation of the database will be case sensitive if the case-sensitive property is set to true in the connection string. | |
Verify() () () () | Recalculates the checksums for each page in the database and compares the new checksums to the expected values. | |
Verify(VerifyOption) | Verifies the integrity of the database based on the VerifyOption. |
Top
Properties
Name | Description | |
---|---|---|
LocalConnectionString | Gets or sets the connection string to the database. |
Top