public static void SeedBattleLogsToSql(MongoConnection mongoConnection, BoardgameSimulatorData data) { if (data == null) { return; } var logs = new GenericData<DummyBattleLog>(mongoConnection.Database, "battlelogs"); var logsFromMongo = logs.GetAllDataFromCollection(); SeedDataFromMongoDb(data, null, null, null, null, logsFromMongo); }
public static void SeedToSql(MongoConnection mongoConnection, BoardgameSimulatorData data) { if (data == null) { return; } var skills = new GenericData<DummySkill>(mongoConnection.Database, "skills"); var units = new GenericData<DummyUnit>(mongoConnection.Database, "units"); var perks = new GenericData<DummyAlignmentPerk>(mongoConnection.Database, "perks"); var heroes = new GenericData<DummyHero>(mongoConnection.Database, "heroes"); var skillsFromMongo = skills.GetAllDataFromCollection(); var unitsFromMongo = units.GetAllDataFromCollection(); var perksFromMongo = perks.GetAllDataFromCollection(); var heroesFromMongo = heroes.GetAllDataFromCollection(); SeedDataFromMongoDb(data, skillsFromMongo, unitsFromMongo, perksFromMongo, heroesFromMongo, null); }