C# 클래스 BudgetAnalyser.Engine.Persistence.XamlOnDiskApplicationDatabaseRepository

상속: IApplicationDatabaseRepository
파일 보기 프로젝트 열기: Benrnz/BudgetAnalyser

공개 메소드들

메소드 설명
CreateNewAsync ( string storageKey ) : Task

Creates a new budget analyser database graph.

LoadAsync ( string storageKey ) : Task

Loads the Budget Analyser database graph from persistent storage.

SaveAsync ( ApplicationDatabase budgetAnalyserDatabase ) : System.Threading.Tasks.Task

Saves the Budget Analyser database graph to persistent storage.

XamlOnDiskApplicationDatabaseRepository ( ApplicationDatabase>.[ mapper ) : System

Initializes a new instance of the XamlOnDiskApplicationDatabaseRepository class.

보호된 메소드들

메소드 설명
FileExists ( string budgetAnalyserDataStorage ) : bool

Checks to see if the budget analyser identified by the budgetAnalyserDataStorage exists in storage or not.

LoadXamlAsString ( string fileName ) : string

Loads the xaml as a string.

Serialise ( BudgetAnalyserStorageRoot budgetAnalyserDatabase ) : string

Serialises the specified budget analyser database to a Xaml string.

WriteToDiskAsync ( string fileName, string data ) : System.Threading.Tasks.Task

Writes the data to local disk.

비공개 메소드들

메소드 설명
LoadXmlFromDiskAsync ( string fileName ) : Task

메소드 상세

CreateNewAsync() 공개 메소드

Creates a new budget analyser database graph.
public CreateNewAsync ( string storageKey ) : Task
storageKey string
리턴 Task

FileExists() 보호된 메소드

Checks to see if the budget analyser identified by the budgetAnalyserDataStorage exists in storage or not.
protected FileExists ( string budgetAnalyserDataStorage ) : bool
budgetAnalyserDataStorage string The budget analyser data storage.
리턴 bool

LoadAsync() 공개 메소드

Loads the Budget Analyser database graph from persistent storage.
File does not exist. /// Deserialisation Application Database file failed, an exception was thrown by the /// Xml deserialiser, the file format is invalid. ///
public LoadAsync ( string storageKey ) : Task
storageKey string
리턴 Task

LoadXamlAsString() 보호된 메소드

Loads the xaml as a string.
protected LoadXamlAsString ( string fileName ) : string
fileName string Name of the file.
리턴 string

SaveAsync() 공개 메소드

Saves the Budget Analyser database graph to persistent storage.
public SaveAsync ( ApplicationDatabase budgetAnalyserDatabase ) : System.Threading.Tasks.Task
budgetAnalyserDatabase ApplicationDatabase The budget analyser database.
리턴 System.Threading.Tasks.Task

Serialise() 보호된 메소드

Serialises the specified budget analyser database to a Xaml string.
protected Serialise ( BudgetAnalyserStorageRoot budgetAnalyserDatabase ) : string
budgetAnalyserDatabase BudgetAnalyserStorageRoot The budget analyser database.
리턴 string

WriteToDiskAsync() 보호된 메소드

Writes the data to local disk.
protected WriteToDiskAsync ( string fileName, string data ) : System.Threading.Tasks.Task
fileName string
data string
리턴 System.Threading.Tasks.Task

XamlOnDiskApplicationDatabaseRepository() 공개 메소드

Initializes a new instance of the XamlOnDiskApplicationDatabaseRepository class.
///
public XamlOnDiskApplicationDatabaseRepository ( ApplicationDatabase>.[ mapper ) : System
mapper ApplicationDatabase>.[
리턴 System