public TownDatabase(LiteDatabase database) { Console.WriteLine("Running LiteDB!"); this.database = database; Guilds = new LiteDBTableAccess <TownGuild>(database, "Guilds"); Users = new LiteDBTableAccess <TownUser>(database, "Users"); }
public TownDatabase(IAmazonDynamoDB dbContext, LiteDatabase database) { this.database = database; Guilds = new LiteDBTableAccess <TownGuild>(database, "Guilds"); Users = new LiteDBTableAccess <TownUser>(database, "Users"); Console.WriteLine("Migrating to dynamo!"); Migrate(dbContext); Guilds = new DynamoTableAccess <TownGuild>(dynamo); Users = new DynamoTableAccess <TownUser>(dynamo); }