using MongoDB.Driver; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SushiBarMongoDB { public class SushiBarMongoDB : IDisposable { private readonly MongoClient _client; private readonly IMongoDatabase _database; public SushiBarMongoDB(string connectionString = "mongodb://localhost:27017", string databaseName = "lab8SUBD") { _client = new MongoClient(connectionString); _database = _client.GetDatabase(databaseName); } public IMongoCollection GetCollection(string collectionName) { return _database.GetCollection(collectionName); } public void Dispose() { } } }