public CreateController() { if (_srv == null) { _srv = new dbService(); } }
void Initialize() { #if DEBUG Constants.Host = "192.168.1.81"; Constants.Port = 59764; #else Constants.Host = "panitbox.com"; Constants.Port = 80; #endif appDb = new AppDb(); Constants.DBName = "AppDb" + Settings.LoggedInUserId + ".db3"; dbs = new dbService(GetLocalFilePath(Constants.DBName), appDb.InitTables, appDb.dbLog); //string mastersDbPath = GetLocalFilePath("masters.db3"); //mastersDb = new SQLiteAsyncConnection(mastersDbPath); //mastersSyncDb = mastersDb.GetConnection(); }
public WebhookController() { bot = new Api("438518161:AAG5xVKFbV4uLf_6CtbyocQhbBv7hHLyL5A"); _dbService = new dbService(); }
public void InitTables(dbService db) { dbService.Db.CreateTablesAsync(types: new Type[] { typeof(JobInfo) }).ConfigureAwait(false); }