protected BaseService(INCoVDatabaseSettings settings, string collection) { var client = new MongoClient(settings.ConnectionString); var database = client.GetDatabase(settings.DatabaseName); _collection = database.GetCollection <T>(collection); }
public CityService(INCoVDatabaseSettings settings) : base(settings, "City") { }
public WeiboUserService(INCoVDatabaseSettings settings) : base(settings, "WeiboUser") { }
public RssFeedService(INCoVDatabaseSettings settings) : base(settings, "RssFeed") { }
public NewsService(INCoVDatabaseSettings settings) : base(settings, "News") { }