DatabaseCE Constructor (String, Version, DBScripts)A Sandcastle Documented Class Library
Initializes a new instance of the DatabaseCE class and creates the database in the Application data folder.

Namespace: Censitif.Library.Data
Assembly: Censitif.Library (in Censitif.Library.dll) Version: 1.0.4878.23877
Syntax

public DatabaseCE(
	string appName,
	Version dbVersion,
	DBScripts scripts
)

Parameters

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 like
    Examples

    C:\Users\Me\AppData\Roaming\MyApp\
  • 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.
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