Example #1
0
 public DishRepository(IDigitalMenuDatabaseSettings settings) : base(settings)
 {
     Dishes = database.GetCollection <Dish>(settings.DishesCollectionName);
 }
Example #2
0
        public BaseRepository(IDigitalMenuDatabaseSettings settings)
        {
            var client = new MongoClient(settings.ConnectionString);

            database = client.GetDatabase(settings.DatabaseName);
        }