コード例 #1
0
        public MongoSentUpdatesRepository(
            MongoApplicationDbContext context,
            MongoDbConfig config)
        {
            _collection = context.SentUpdates;

            if (!_collection.Indexes.List().Any()) // There shouldn't be more than one index in the collection
            {
                CreateExpirationIndex(config);
            }
        }
コード例 #2
0
 public MongoUserLatestUpdateTimesRepository(MongoApplicationDbContext context)
 {
     _collection = context.UserLatestUpdateTimes;
 }