예제 #1
0
        public MongoCrudService(ICeiApiDB dbSettings, string collectionName)
        {
            var client   = new MongoClient(dbSettings.ConnectionString);
            var database = client.GetDatabase(dbSettings.DatabaseName);

            this.collection = database.GetCollection <ModelType>(collectionName);
        }
예제 #2
0
 public EncuestaRespuestaService(ICeiApiDB dbSettings) :
     base(dbSettings, dbSettings.Collections.EncuestaRespuesta)
 {
 }
예제 #3
0
 public MongoCrudService(ICeiApiDB dbSettings)
 {
     var client   = new MongoClient(dbSettings.ConnectionString);
     var database = client.GetDatabase(dbSettings.DatabaseName);
 }
예제 #4
0
 public MateriaService(ICeiApiDB dbSettings) :
     base(dbSettings, dbSettings.Collections.Materia)
 {
 }
예제 #5
0
 public CursoService(ICeiApiDB dbSettings) :
     base(dbSettings, dbSettings.Collections.Curso)
 {
 }
예제 #6
0
 public EstudianteService(ICeiApiDB dbSettings) :
     base(dbSettings, dbSettings.Collections.Estudiante)
 {
 }