ice Car Rental
Overview
This tutorial mainly consists of a sequence of source code projects that demonstrate
how to create Web applications using the ice.NET Platform. The application scenario
involves ICR ("ice Car Rental"), a car rental agency. ICR manages a fleet of vehicles
of different models and rents them to customers. Whenever a vehicle is to be rent,
a booking entry is created.
The following activities can be performed with the demo application:
- Choose a customer from the customers list (in order to identify oneself)
- List the customer's bookings
- Add a new booking for the customer
- Choose a vehicle that will be booked and create a booking entry
Download
The source code and the solution files together with a detailed description can be downloaded from
here.
Data Model
The following data model is used within the ICR scenario:
The abstract Model represents the root of the hierarchy of different car models
with different characteristics. The Vehicle represents a single instance of a specific
car model. A Booking object is created whenever a Customer rents a car. In the ICR
application scenario only Booking objects are created and modified. Car models,
the vehicle fleet of ICR and the ICR customer base remains unchanged.
Application Software
In several steps an increasing set of ice.NET functionality will be used in the
projects:
- Step 1: Using the ice.NET API
- Step 2: Developing and using ice.NET Business Objects
- Step 3: Making use of the ice.NET Business Object Builder (icebob.exe)
- Step 4: Generating and using ice.NET Queries
- Step 5: Using ice.NET User Interface Controls for ASP.NET
Example Data
The tutorial comes with predefined sample data:
ice Car Rental in Action...
Setup
Prerequisites
The following components must be installed and/or activated on the developer workstation:
- IIS 6.* or 7.*
- .NET Framework in the appropriate version (e.g. 3.5 SP1 or 4.0)
- MS SQL Server 2005 or 2008 Express Edition installed with instance name SQLEXPRESS
Step by step
- Unzip the content of the tutorial ZIP into an appropriate directory (e.g. D:\tutorials\icr_46\).
This directory must not be moved/renamed after installation.
- Run the license service installer and request a license file.
See here.
- Run the installer (\Ice\Setup\Installer\iceinstall.exe).
The predefined settings should be appropriate, if all prerequisites are fulfilled.
Press the Install button.
Fill the database
- Start the ice.NET Studio Smart Client.
- Create a database connection and name it ICR.
The database connect string is
server=(local)\SQLEXPRESS;trusted_connection=yes;database=icr
- Login (User: Administrator, password is empty).
- Import the data model: Model Navigator -> Import from XML -> Select \Data\PDTec.ICR.icemodel
- Import the data: Folder browser -> Root -> Import from XML -> Select \Data\ICR.Data.icedata, activate the Import including keys option.