Méthode | Description | |
---|---|---|
CopyFileAsync ( string sourcePath, string destinationPath ) : Task | ||
DatabaseHandler ( Window owner ) : System | ||
EnsureAvailableAsync ( ) : Task |
Checks server and database availability. If there is no database file, copy and attach initial database. Update database if it is outdated. If connection fails, the exception must be handled by the caller. |
|
LogException ( |
Writes exception details into a log file.
|
|
UpdateDatabaseAsync ( ) : Task |
Updates database if needed.
|
Méthode | Description | |
---|---|---|
CreateNewDatabaseAsync ( ) : Task |
Creates a new database.
|
|
GetUpdateScript ( string name ) : string |
Returns the update script with specified name.
|
|
RunScript ( string scriptFile ) : void |
Runs the specified database script.
|
|
TryUntilTimeout ( System.Action action, int timeout ) : Task | ||
UpdateDatabaseToVersion ( bool backupBeforeUpdate, int major, int minor, int build, int revision ) : void |
Updates database by running a script, after making an optional backup.
|
public CopyFileAsync ( string sourcePath, string destinationPath ) : Task | ||
sourcePath | string | |
destinationPath | string | |
Résultat | Task |
public DatabaseHandler ( Window owner ) : System | ||
owner | Window | |
Résultat | System |
public LogException ( |
||
ex | The exception to log. | |
Résultat | void |