Ejemplo n.º 1
0
 public BaseRepository(IOptions <MongoDBConfig> mongoDBConfig)
 {
     _mongoDBConfig = mongoDBConfig.Value;
     //client = new MongoClient("mongodb://localhost:27017/RemoteVoters");
     client   = new MongoClient(_mongoDBConfig.getConnectionString());
     database = client.GetDatabase(_mongoDBConfig.Database);
 }