C# Class PROJECTNAMESPACE.DatabaseInstaller

Inheritance: System.Configuration.Install.Installer
Afficher le fichier Open project: nHydrate/nHydrate Class Usage Examples

Private Properties

Свойство Type Description
DropDatabase bool
GetCommandLineParameters string>.Dictionary
GetSetting bool
GetSetting string
IdentifyDatabaseConnectionString bool
IsValidFileName bool
UIInstall void

Méthodes publiques

Méthode Description
DatabaseInstaller ( ) : System

The default constructor

GetScript ( InstallSetup setup ) : string

Returns the upgrade script for the specified database

Install ( InstallSetup setup ) : void

Performs an install of a database

Install ( System stateSaver ) : void

Performs an install of a database

IsVersioned ( string connectionString ) : bool

Determines if the specified database has ever been versioned by the framework

NeedsUpdate ( string connectionString ) : bool

Determines if the specified database needs to be upgraded

ShowHelp ( ) : void
Uninstall ( System savedState ) : void

VersionInstalled ( string connectionString ) : string

Determines the current version of the specified database

VersionLatest ( ) : string

The database version to which this installer will upgrade a database

Private Methods

Méthode Description
DropDatabase ( string dbname, string masterConnectionString ) : bool
GetCommandLineParameters ( ) : string>.Dictionary
GetSetting ( string>.Dictionary commandParams, string keys, bool defaultValue ) : bool
GetSetting ( string>.Dictionary commandParams, string keys, string defaultValue ) : string
IdentifyDatabaseConnectionString ( InstallSetup setup ) : bool
IsValidFileName ( string fileName ) : bool
UIInstall ( InstallSetup setup ) : void

Method Details

DatabaseInstaller() public méthode

The default constructor
public DatabaseInstaller ( ) : System
Résultat System

GetScript() public méthode

Returns the upgrade script for the specified database
public GetScript ( InstallSetup setup ) : string
setup InstallSetup
Résultat string

Install() public méthode

Performs an install of a database
public Install ( InstallSetup setup ) : void
setup InstallSetup
Résultat void

Install() public méthode

Performs an install of a database
public Install ( System stateSaver ) : void
stateSaver System
Résultat void

IsVersioned() public méthode

Determines if the specified database has ever been versioned by the framework
public IsVersioned ( string connectionString ) : bool
connectionString string
Résultat bool

NeedsUpdate() public méthode

Determines if the specified database needs to be upgraded
public NeedsUpdate ( string connectionString ) : bool
connectionString string
Résultat bool

ShowHelp() public static méthode

public static ShowHelp ( ) : void
Résultat void

Uninstall() public méthode

public Uninstall ( System savedState ) : void
savedState System
Résultat void

VersionInstalled() public méthode

Determines the current version of the specified database
public VersionInstalled ( string connectionString ) : string
connectionString string
Résultat string

VersionLatest() public méthode

The database version to which this installer will upgrade a database
public VersionLatest ( ) : string
Résultat string