Initializes a new instance of the DatabaseCE class.
Namespace: Censitif.Library.DataAssembly: Censitif.Library (in Censitif.Library.dll) Version: 1.0.4878.23877
Syntax
Parameters
- dataFolder
- Type: System String
The path to the database file.
- dataFileName
- Type: System String
The name of the database file.
- appName
- Type: System String
The name of the application. This influences:- The path of the database file
The database file will be stored in a folder likeC:\Users\Me\AppData\Roaming\MyApp\Examples - The name of the database file
The database file will be named MyAppDB.sdf - The database itself
The database will store the name of the application it is dedicated to, to prevent another application from modifying it via this library.
- The path of the database file
- dbVersion
- Type: System Version
The desired version of the database. Thuis will usually be the application version. In case the current version of the database is lower, the library will browse the given db scripts to execute any script update between the current and desired db versions.
- scripts
- Type: Censitif.Library.Data DBScripts
A set of db scripts used to update any database that would not be up to dateas per the requested version number.
See Also