Example #1
0
 public RepositoryBaseMongo(MongoDbSettings settings)
 {
     _settings = settings;
     _client   = new MongoClient(settings.ConnectionString);
     _database = _client.GetDatabase(settings.Database);
 }
Example #2
0
 public PostsRepositoryMongo(MongoDbSettings settings) : base(settings)
 {
     _posts = Database.GetCollection <PostMongoDto>(settings.Posts);
 }