示例#1
0
        protected BaseService(INCoVDatabaseSettings settings, string collection)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            _collection = database.GetCollection <T>(collection);
        }
示例#2
0
 public CityService(INCoVDatabaseSettings settings) : base(settings, "City")
 {
 }
 public WeiboUserService(INCoVDatabaseSettings settings) : base(settings, "WeiboUser")
 {
 }
 public RssFeedService(INCoVDatabaseSettings settings) : base(settings, "RssFeed")
 {
 }
示例#5
0
 public NewsService(INCoVDatabaseSettings settings) : base(settings, "News")
 {
 }