Esempio n. 1
0
        public IMongoCollection <Model.CheckOutItem> Collection()
        {
            if (!_client.IsConnected)
            {
                _client.TryConnect();
            }
            IMongoDatabase iMongoDatabase = _client.GetMongoDatabase();

            return(iMongoDatabase.GetCollection <Model.CheckOutItem>("checkout"));
        }
Esempio n. 2
0
        public IMongoCollection <Model.CashDeskItem> Collection()
        {
            if (!_client.IsConnected)
            {
                _client.TryConnect();
            }
            IMongoDatabase iMongoDatabase = _client.GetMongoDatabase();

            return(iMongoDatabase.GetCollection <Model.CashDeskItem>("cashdesk"));
        }
Esempio n. 3
0
        public IMongoCollection <Model.CustomerItem> Collection()
        {
            if (!_client.IsConnected)
            {
                _client.TryConnect();
            }
            IMongoDatabase iMongoDatabase = _client.GetMongoDatabase();

            return(iMongoDatabase.GetCollection <Model.CustomerItem>("customer"));
        }