O'Reilly logo

Application Development Using Visual Basic® and .NET by Dana L. Wyatt, Peter Thorsteinson, Robert J. Oberg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Acme Travel Agency Case Study

At this point we have covered more than enough material for you to understand the database version of the Customer and HotelBroker objects in the case study. As usual, the code is in the CaseStudy directory for this chapter.

Since there will never be any reason for the Customer object to hold any state, the Customer object methods use SqlDataReader to access the database and return the results. Any state that a program might need (i.e., a list of customers) could easily be maintained in the client program and not in a middle-tier object.

The HotelBroker and HotelBookings objects are a little more complicated. As mentioned earlier, for pedagogical reasons alone, these objects would have been implemented using a

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required