DatabaseCE InitDatabase Method A Sandcastle Documented Class Library
Initializes the database with the given parameters.

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

public void InitDatabase(
	string dataFolder,
	string dataFileName,
	string appName,
	Version dbVersion,
	DBScripts scripts
)

Parameters

dataFolder
Type: System String
Database file location.
dataFileName
Type: System String
Database filename.
appName
Type: System String
Application name. This si ther application that will use this database.
dbVersion
Type: System Version
Expected database version.
scripts
Type: Censitif.Library.Data DBScripts
List of scripts that will allow to raise the current database to the expected version in case it is older. In other terms, will run all the scripts with a version number between the curent database version (excluded) and the expected version. Not having a script with the same version number as the expected version is not an issue.
See Also