Exemplo n.º 1
0
        public ProductService(IEKartDatabaseSettings settings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            _products = database.GetCollection <Products>(settings.EKartCollectionProducts);
        }
Exemplo n.º 2
0
        public CustomerService(IEKartDatabaseSettings settings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            _customers = database.GetCollection <Customers>(settings.EKartCollectionCustomers);
        }