C# Класс Shared.Data.Database

Показать файл Открыть проект

Открытые методы

Метод Описание
GetInstance ( ) : DatabaseImplementation

Singleton. Returns the instance of the local database.

GetLocalDatabaseSavePath ( ) : string

Singleton. Returns the instance of the remote database.

Singleton. Returns the instance of the settings database.

Returns the path the (SQLight) database file should be stored on the users computer. Every week, a new file is created to make it easy to backup and 'guarantee' no performance issues.

GetSettingsDatabaseSavePath ( ) : string

Returns the path of the database file that a RDP user manually copies there to be merged for the visualizations.

Returns the path of the database file that stores the settings.

Приватные методы

Метод Описание
GetDatabaseSavePath ( string exportPath ) : string

returns the file name of the database file (path) 07.04.15: from now on, there is not a weekly dump anymore (to get back to data from previous weeks), but a yearly dump 20.10.15: from now on, there is not a yearly dump anymore //TODO: check if this results in performance issues

GetSettingsSavePath ( string exportPath ) : string

Описание методов

GetInstance() публичный статический Метод

Singleton. Returns the instance of the local database.
public static GetInstance ( ) : DatabaseImplementation
Результат DatabaseImplementation

GetLocalDatabaseSavePath() публичный статический Метод

Singleton. Returns the instance of the remote database. Singleton. Returns the instance of the settings database. Returns the path the (SQLight) database file should be stored on the users computer. Every week, a new file is created to make it easy to backup and 'guarantee' no performance issues.
public static GetLocalDatabaseSavePath ( ) : string
Результат string

GetSettingsDatabaseSavePath() публичный статический Метод

Returns the path of the database file that a RDP user manually copies there to be merged for the visualizations. Returns the path of the database file that stores the settings.
public static GetSettingsDatabaseSavePath ( ) : string
Результат string