Create the Classes First in Caché
Now that we (more or less) know what we want to create in C#, we start by creating classes in Caché.
Right-click the Caché Cube (Figure 1) and open the Caché Studio (Figure 2).
Figure 1. Right-click the Caché Cube ...
Figure 2. Then open the Caché Studio.
Click on File->New Project to create a new project. Then, so that you can
name it, click on File->Save Project. Next, right-click on Classes and click Create New Class to add the
Route class as shown in Figure 3.
Figure 3. Creating a new class
When prompted, name the new class
Route, and set its type to Persistent, as shown in Figure 4.
Figure 4. Setting the class type
The most important buttons you'll use in the studio are the buttons for creating a New Property and for creating a Query, as shown highlighted in Figure 5.
Figure 5. The handiest: New Property and Query buttons
We decided earlier that
Route would have
RouteName, so click on the New Property
button and give the class a property
RouteName. You are next asked what the
property is "for" and in this case it is a single value of type
String so you
can accept the defaults and click Finish. The Caché class is updated.