C# Class Rainy.Db.DbStorage

Inheritance: IStorage, IDisposable
Show file Open project: Dynalon/Rainy Class Usage Examples

Public Properties

Property Type Description
UseHistory bool
User DBUser

Protected Properties

Property Type Description
Manifest SyncManifest
connFactory IDbConnectionFactory
db IDbConnection
trans IDbTransaction

Public Methods

Method Description
Backup ( ) : string
DbStorage ( IDbConnectionFactory factory, string username, bool use_history = true ) : System
DeleteNote ( Note note ) : void
Dispose ( ) : void
GetConfigVariable ( string key ) : string
GetNotes ( ) : Note>.Dictionary
SaveNote ( Note note ) : void
SetBackupPath ( string path ) : void
SetConfigVariable ( string key, string value ) : void
SetPath ( string path ) : void

Protected Methods

Method Description
GetDBNotes ( ) : List
SaveDBNote ( Rainy.Db.DBNote db_note ) : void

Method Details

Backup() public method

public Backup ( ) : string
return string

DbStorage() public method

public DbStorage ( IDbConnectionFactory factory, string username, bool use_history = true ) : System
factory IDbConnectionFactory
username string
use_history bool
return System

DeleteNote() public method

public DeleteNote ( Note note ) : void
note Tomboy.Note
return void

Dispose() public method

public Dispose ( ) : void
return void

GetConfigVariable() public method

public GetConfigVariable ( string key ) : string
key string
return string

GetDBNotes() protected method

protected GetDBNotes ( ) : List
return List

GetNotes() public method

public GetNotes ( ) : Note>.Dictionary
return Note>.Dictionary

SaveDBNote() protected method

protected SaveDBNote ( Rainy.Db.DBNote db_note ) : void
db_note Rainy.Db.DBNote
return void

SaveNote() public method

public SaveNote ( Note note ) : void
note Tomboy.Note
return void

SetBackupPath() public method

public SetBackupPath ( string path ) : void
path string
return void

SetConfigVariable() public method

public SetConfigVariable ( string key, string value ) : void
key string
value string
return void

SetPath() public method

public SetPath ( string path ) : void
path string
return void

Property Details

Manifest protected property

protected SyncManifest Manifest
return SyncManifest

UseHistory public property

public bool UseHistory
return bool

User public property

public DBUser,Rainy.Db User
return DBUser

connFactory protected property

protected IDbConnectionFactory connFactory
return IDbConnectionFactory

db protected property

protected IDbConnection db
return IDbConnection

trans protected property

protected IDbTransaction trans
return IDbTransaction