Entity Relationship Diagram
The Entity Relationship Diagram represents Entity Types for which data must be stored in the LN Application, such as Purchase Orders, Customers and Projects.
Entity Types that represent database tables are placed in the diagram. Relationships are drawn between the Entity Types. Their graphical representation indicates the cardinality of the relationship (one to one, one to many or many to many) and the relation is optional.
Using Decomposed Diagrams you can link another Entity Relationship Diagram to one of the Entity Types in a diagram, thus indicating all the other relationships of that Entity Type. For example, in a diagram that is created for Purchase Orders, there is an Entity Type for Items. If you would draw all the Entity Types that are linked to the Item Entity, the diagram becomes unreadably large. By linking an Decomposed Diagram of the Item Entity, the Purchase Order Diagram is readable.
Entity Relationship Diagram graphical objects
Menu option | Description |
---|---|
Insert -> Entity Type | Inserts an
Entity that represents an object for which you must record information.
Select one of these types:
|
Insert -> Relationship(1:n) | Inserts a relationship between two entity types. The cardinality of the relationship defines the expected number of related occurrences for each of the two entity types |
Insert -> Subtype Relationship | Inserts a subtype relationship between two entity types, a subtype and a supertype. It is used to indicate that the supertype’s attribute also apply to, are inherited by, the subtype. |
Operations that are used in Entity Relationship Diagram
Operation | Description |
---|---|
Modify the Type of the Entity Type |
Right-click the Entity Type, point to Type. Select one of these
options:
|
Link a Decomposed Diagram to the Entity Type | Right-click the Entity Type, select Properties. Link the appropriate Decomposed Diagram to the Entity Type. The Entity Type graphical object is embossed. |
Edit/view the Decomposed Diagram that is linked to the Entity Type | Right-click the Entity Type, select Edit linked ERD. |
Link tables to the Entity Type | Right-click the Entity Type, select Tables. Link the appropriate LN tables to the Entity Type. A Linked Tables icon is attached to the Entity Type. |
Modify the Type of the (Subtype) Relationship |
Right-click the (Subtype)
Relationship, point to Type. Select one of these:
|
Modify the cardinality of the Relationship |
Right-click the Relationship, point to
Cardinality. Select one of these:
|
Modify the direction of the (Subtype) Relationship | Right-click the (Subtype) Relationship and select Reverse direction. |
Add a Midpoint to a (Subtype) Relationship | Right-click the (Subtype) Relationship and select Add Midpoint to change the route of the Relationship. This is only possible if the Type of the Relationship is Free. You can add as many midpoints as required. |
Indicate an optional Relationship between two Entity Types | Right-click
the Relationship and select one of these options:
|
Add/modify the description on one or the other side of the Relationship | Right-click the Entity Type, select Properties. Now add/modify the description From-To or To-From. The descriptions display in the diagram and can be moved around. |