public override void GetDatabaseObjects()
        {
            DatabaseObjectsFactory <Customer> factory = new DatabaseObjectsFactory <Customer>();
            string collectionName = CollectionsNames.CustomersCollection;
            DatabaseObjects <Customer> objects = factory.GetDatabaseObjects(collectionName);

            collection = objects.Collection;
            database   = objects.Database;
        }
Exemple #2
0
        public override void GetDatabaseObjects()
        {
            DatabaseObjectsFactory <Hotel> factory = new DatabaseObjectsFactory <Hotel>();
            string collectionName           = CollectionsNames.HotelsCollection;
            DatabaseObjects <Hotel> objects = factory.GetDatabaseObjects(collectionName);

            collection = objects.Collection;
            database   = objects.Database;
        }
        public override void GetDatabaseObjects()
        {
            DatabaseObjectsFactory <Destination> factory = new DatabaseObjectsFactory <Destination>();
            string collectionName = CollectionsNames.DestinationsCollection;
            DatabaseObjects <Destination> objects = factory.GetDatabaseObjects(collectionName);

            collection = objects.Collection;
            database   = objects.Database;
        }
Exemple #4
0
        public override void GetDatabaseObjects()
        {
            DatabaseObjectsFactory <Arrangement> factory = new DatabaseObjectsFactory <Arrangement>();
            string collectionName = CollectionsNames.ArrangementsCollection;
            DatabaseObjects <Arrangement> objects = factory.GetDatabaseObjects(collectionName);

            collection = objects.Collection;
            database   = objects.Database;
        }