示例#1
0
        public async Task SeedAsync()
        {
            var dbName = _provider.Configuration.DatabaseName;
            await _provider.Client.DropDatabaseAsync(dbName);

            await SeedAsync(_provider.GetCollection <T>(_key));
        }
示例#2
0
 public MongoService(IMongoProvider mongo, string collection)
 {
     _collection = mongo.GetCollection <T>(collection);
 }
示例#3
0
 public MongoPricingService(IMongoProvider provider)
 {
     _pricing = provider.GetCollection <PricingInformation>("Pricing");
 }