C# 클래스 Shared.Data.Database

파일 보기 프로젝트 열기: sealuzh/PersonalAnalytics

공개 메소드들

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