public MongoCrudService(ICeiApiDB dbSettings, string collectionName) { var client = new MongoClient(dbSettings.ConnectionString); var database = client.GetDatabase(dbSettings.DatabaseName); this.collection = database.GetCollection <ModelType>(collectionName); }
public EncuestaRespuestaService(ICeiApiDB dbSettings) : base(dbSettings, dbSettings.Collections.EncuestaRespuesta) { }
public MongoCrudService(ICeiApiDB dbSettings) { var client = new MongoClient(dbSettings.ConnectionString); var database = client.GetDatabase(dbSettings.DatabaseName); }
public MateriaService(ICeiApiDB dbSettings) : base(dbSettings, dbSettings.Collections.Materia) { }
public CursoService(ICeiApiDB dbSettings) : base(dbSettings, dbSettings.Collections.Curso) { }
public EstudianteService(ICeiApiDB dbSettings) : base(dbSettings, dbSettings.Collections.Estudiante) { }