Telerik OpenAccess Classic

Telerik OpenAccess ORM Send comments on this topic.
Starting the Wizard - Main Window
Programmer's Guide > OpenAccess ORM Classic (Old API) > Development Environment > Wizards and Dialogs > Forward Mapping Wizard > Starting the Wizard - Main Window

Glossary Item Box

This documentation article is a legacy resource describing the functionality of the deprecated OpenAccess Classic only. The contemporary documentation of Telerik OpenAccess ORM is available here.

The Forward Mapping wizard may be started by the OpenAccess Menu's Forward Mapping (Classes to Tables) command.

Main Window

Once that you've started the Forward Mapping wizard, the main window should be very similar to the snapshot below.

The main elements (parts) of the Forward Mapping wizard are as follows:

  • TreeView - the tree view contains all the classes and structs in your project. The treeview contains two primary folders: "Non-Persistent" and "Persistent". As its name suggests in the Non-Persistent folder all the classes that are not persistent are listed. Respectively, in the Persistent folder any classes marked with Persistent attribute are shown. As you can see from the snapshot above all classes from the target project are shown in the Non-Persistent folder. Which means that none of them is marked with Persistent attribute.
  • Namespace ComboBox - this drop-down list contains all the projects present in a solution. You can choose the project which tree view you want to be displayed.
  • Reload Button - clicking on this button will reload the complete content in the dialog. E.g., if you have changed anything in the classes and/or fields the changes will appear, or if you have added some classes and/or fields they will appear in the tree view.
  • Details View or Mapping Information View- this is probably the most important part of the Forward Mapping wizard. Depending on your selection in the treeview, a different view appears in this part of the wizard. Just for test, mark the Address class as persistent. A corresponding node is added under the Persistent tree node.

    Select the Address node in the tree view. Note how the Mapping Information view is changed. There you can specify further mapping for the class. The rest of the topics in this section cover all the scenarios, depending on the selection in the tree view.
There is one important thing you should note - any changes made in the Forward Mapping wizard are reflected in the code immediately.