C# 클래스 PROJECTNAMESPACE.DatabaseInstaller

상속: System.Configuration.Install.Installer
파일 보기 프로젝트 열기: nHydrate/nHydrate 1 사용 예제들

Private Properties

프로퍼티 타입 설명
DropDatabase bool
GetCommandLineParameters string>.Dictionary
GetSetting bool
GetSetting string
IdentifyDatabaseConnectionString bool
IsValidFileName bool
UIInstall void

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

DatabaseInstaller() 공개 메소드

The default constructor
public DatabaseInstaller ( ) : System
리턴 System

GetScript() 공개 메소드

Returns the upgrade script for the specified database
public GetScript ( InstallSetup setup ) : string
setup InstallSetup
리턴 string

Install() 공개 메소드

Performs an install of a database
public Install ( InstallSetup setup ) : void
setup InstallSetup
리턴 void

Install() 공개 메소드

Performs an install of a database
public Install ( System stateSaver ) : void
stateSaver System
리턴 void

IsVersioned() 공개 메소드

Determines if the specified database has ever been versioned by the framework
public IsVersioned ( string connectionString ) : bool
connectionString string
리턴 bool

NeedsUpdate() 공개 메소드

Determines if the specified database needs to be upgraded
public NeedsUpdate ( string connectionString ) : bool
connectionString string
리턴 bool

ShowHelp() 공개 정적인 메소드

public static ShowHelp ( ) : void
리턴 void

Uninstall() 공개 메소드

public Uninstall ( System savedState ) : void
savedState System
리턴 void

VersionInstalled() 공개 메소드

Determines the current version of the specified database
public VersionInstalled ( string connectionString ) : string
connectionString string
리턴 string

VersionLatest() 공개 메소드

The database version to which this installer will upgrade a database
public VersionLatest ( ) : string
리턴 string