24.12.2012 Views

ER/Studio - Embarcadero Technologies Product Documentation

ER/Studio - Embarcadero Technologies Product Documentation

ER/Studio - Embarcadero Technologies Product Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

USING <strong>ER</strong>/STUDIO > DEVELOPING THE LOGICAL MODEL<br />

• You can name entities as you add them by using on-screen editing. Either type a name for an entity immediately<br />

after adding it to the diagram, or press the SHIFT key, click the default entity name to enable the entity name<br />

field, and then type a name. Click the diagram background to save the name and deactivate on-screen editing.<br />

For information on entity naming rules and conventions, see Best Practices.<br />

• The status bar at the bottom right of the application window displays the number of entities in the selected model.<br />

• You can specify naming rules, such as maximum length, case, and synchronization level between entities and<br />

tables on the Logical and Name Handling tabs of the Options Editor, which you can access by clicking Tools ><br />

Options > Logical.<br />

• You can specify the display order of the attributes and primary keys of any entity on the Display tab of the Options<br />

Editor, which you can access by clicking Tools > Options > Logical.<br />

• You can customize the information that pops up when you hover the mouse over an entity by selecting an option<br />

from the list that appears when you select View > Cursor Popup Help Options > Entity Help.<br />

• By default, <strong>ER</strong>/<strong>Studio</strong> automatically fits entities and views to display all content selected. However, you can resize<br />

any entity to any size by selecting the entity and then dragging the size handles. You can make global changes to<br />

how entities display by right-clicking the model, and selecting Diagram and Object Display Options. Then you can<br />

choose the display options desired in the Entity and View tabs of the Diagram and Object Display Options editor.<br />

• For information on arranging entities in the Data Model Window, see Changing Data Model Layout.<br />

• For information on changing the colors of entities, see Overriding Color and Font Settings for a Specific Object.<br />

Creating and Editing Tables<br />

The table is the basic unit of a physical data model. <strong>ER</strong>/<strong>Studio</strong> facilitates the smooth conversion of databases into<br />

physical models for deployment on an SQL database platform. You can populate your data model with tables by<br />

importing or reverse-engineering an existing database, generating a new physical model from a logical model, or by<br />

adding individual tables as needed. You can make changes to a table at any time using the Table Editor. You can also<br />

edit table Columns and Indexes using the Column Editor and Index Editor. respectively.<br />

<strong>ER</strong>/<strong>Studio</strong> lets you add as many tables to your physical model as you need. When you add a table to the diagram, it<br />

creates as an independent table with square corners in the Data Model Explorer. You can create relationships<br />

between tables and create views as needed. As you draw relationships and foreign Keys, associating the table with<br />

others, <strong>ER</strong>/<strong>Studio</strong> automatically maintains the table status as an independent or dependent (child).<br />

Create a Table<br />

1 In the Data Model Explorer, expand a Physical model or submodel.<br />

2 From the Data Modeling toolbar, click the Table tool, position the cursor over the desired location in the Data<br />

Model Window, and then left-click.<br />

TIP: Right-click to revert to the Selection tool.<br />

3 To define table details, double-click the table to launch the Table Editor.<br />

4 Define the table as required and then click OK.<br />

The following describe options that require additional explanation:<br />

Columns tab<br />

Add, edit, or delete columns. You can also change the order of the columns in the list which changes their<br />

corresponding column placement in the entity's table. You can also add an column to the primary key for the<br />

table. The tabs at the bottom of the Columns tab apply only to the column selected and are the same as those<br />

available for the Attributes tab in the Entity Editor. For more information, see Creating and Editing Columns.<br />

EMBARCAD<strong>ER</strong>O TECHNOLOGIES > <strong>ER</strong>/STUDIO® 8.0.3 US<strong>ER</strong> GUIDE 117

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!