public DbInterface() { _campaignDb = new SqLiteDb(Properties.Settings.Default.CampaignDatabaseName); _mapDb = new SqLiteDb(Properties.Settings.Default.MapDatabaseName); Party = new DbParty(this, _campaignDb); Session = new DbSession(this, _campaignDb); Hexes = new DbHex(this, _mapDb); HexConnections = new DbHexConnection(this, _mapDb); DbUpdater.CheckForCampaignDbSchemaUpdates(_campaignDb, Party, Session); DbUpdater.CheckForMapDbSchemaUpdates(_mapDb, Hexes, HexConnections); }
public void UpdateDbSchema() { _mapDb.ReloadDb(); DbUpdater.CheckForCampaignDbSchemaUpdates(_campaignDb, Party, Session); DbUpdater.CheckForMapDbSchemaUpdates(_mapDb, Hexes, HexConnections); }