public async Task Seed(MongoConfig config) { EngineCensoContext context = new EngineCensoContext(config); if (!context.CensoMappings.Find(x => true).Any()) { await ConfigureIndexes(context.CensoMappings); await context.CensoMappings.InsertManyAsync(SeedData); } }
public CensoMappingMongoRepository(MongoConfig config) { context = new EngineCensoContext(config); }