Caché Managed Provider for .NET Tutorial
Installing Caché Classes and Populating the Database
[Back] 
   
Server:docs2
Instance:LATEST
User:UnknownUser
 
-
Search:    

Complete the following steps to use Caché Studio to install Contact and PhoneNumber into a Caché namespace:

  1. Open Studio. Click File —> Change Namespace to connect to the namespace in which you will be working. The USER namespace is a good choice.
  2. Browse to the directory containing Contacts.xml. Click on Contacts.xml. Click Open and then OK to load and compile the classes.
After the classes are installed and compiled, use Caché Terminal to populate the database with sample instances of the classes. All classes have been configured for use with the population utility. Here are the steps to follow:
  1. Open Caché Terminal in the namespace in which you installed the Caché classes. If terminal opens in a different namespace, use the ZN command to switch to the correct namespace.
  2. Execute the Fill method of Provider.Utilities. This method clears all existing Provider.Contact and Provider.PhoneNumber instances from the namespace and then adds 25 Provider.Contact and 100 Provider.PhoneNumber instances.
USER> do ##class(Provider.Utilities).Fill()
Note:
To learn how to create a new Caché namespace, read the discussion of “Configuring Namespaces” in the Configuring Caché section of the Caché System Administration Guide.
To learn more about using Caché Studio, read Using Caché Studio.
To learn more about using Caché Terminal, read Using Caché Terminal.