public MongoGenericRepository(IMongoCollectionFactory factory, string collectionName)
        {
            Throw.IfNull(factory, nameof(factory));
            Throw.IfNull(collectionName, nameof(collectionName));

            _collection = factory.GetCollection <TMongoEntity>(collectionName);
        }
Пример #2
0
 public MongoCollectionBase <SearchTerm> GetSearchTermCollection()
 {
     return(searchTermCollectionFactory.GetCollection(database, configuration.SearchTermCollectionName));
 }
Пример #3
0
 public MongoCollectionBase <Answer> GetAnswerCollection()
 {
     return(answerCollectionFactory.GetCollection(database, configuration.AnswerCollectionName));
 }
Пример #4
0
 public MongoCollectionBase <Question> GetQuestionCollection()
 {
     return(questionCollectionFactory.GetCollection(database, configuration.QuestionCollectionName));
 }