public MongoContext(IMongoConfigurationFactory configurationFactory, IMongoClientFactory clientFactory, IMongoDatabaseFactory databaseFactory, IMongoCollectionFactory <Question> questionCollectionFactory, IMongoCollectionFactory <Answer> answerCollectionFactory, IMongoCollectionFactory <SearchTerm> searchTermCollectionFactory) { this.configurationFactory = configurationFactory; this.clientFactory = clientFactory; this.databaseFactory = databaseFactory; this.questionCollectionFactory = questionCollectionFactory; this.answerCollectionFactory = answerCollectionFactory; this.searchTermCollectionFactory = searchTermCollectionFactory; configuration = configurationFactory.Create(); var client = clientFactory.Create(configuration); database = databaseFactory.GetDatabase(configuration, client); EnforceTextIndexes(); }
public TestResultRepository(IMongoDatabaseFactory factory) { this.Collection = factory .GetDatabase() .GetCollection <TestResult>("testResults"); }
public PatientDetailsRepository(IMongoDatabaseFactory factory) { this.Collection = factory .GetDatabase() .GetCollection <PatientDetail>("patientDetails"); }
public DiagnosisRepository(IMongoDatabaseFactory factory) { this.Collection = factory .GetDatabase() .GetCollection <Diagnosis>("diagnoses"); }
public RecentModuleListsRepository(IMongoDatabaseFactory factory) { this.Collection = factory.GetDatabase() .GetCollection <RecentModulesList>("recentModulesLists"); }
public MedicationRepository(IMongoDatabaseFactory factory) { this.Collection = factory .GetDatabase() .GetCollection <Medication>("medications"); }
public ContactRepository(IMongoDatabaseFactory factory) { this.Collection = factory .GetDatabase() .GetCollection <Contact>("contacts"); }
public NotificationsRepository(IMongoDatabaseFactory factory) { this.Collection = factory.GetDatabase() .GetCollection <Notification>("notifications"); }
public AllergyRepository(IMongoDatabaseFactory factory) { this.Collection = factory .GetDatabase() .GetCollection <Allergy>("allergies"); }
public RecentPatientsRepository(IMongoDatabaseFactory factory) { this.Collection = factory.GetDatabase() .GetCollection <RecentPatient>("recentPatients"); }
public MongoIndexBuilder(IMongoDatabaseFactory factory) { this.Database = factory.GetDatabase(); }
public ClinicalNoteRepository(IMongoDatabaseFactory factory) { this.Collection = factory .GetDatabase() .GetCollection <ClinicalNote>("clinicalNotes"); }