DB Entities
DB Entities are used to define data that requires persistence. For each DB Entity created, a corresponding database table is generated.
Example: In an e-commerce application, entities such as Customer, Address, Order, OrderItems, and Product are defined as DB Entities since they need to be stored persistently.
Key Characteristics of a DB Entity
- Uniqueness – Each entity has a unique identifier, often called a Primary Key.
- Attributes – Entities have properties that describe them, known as fields or columns in a database table.
- Relationships – Entities can be linked to other entities through relationships (e.g., one-to-many, one-to-one, many-to-many).
- Persistence – For every DB Entity a relational table is created.
Add Folder
For better organization and accessibility, users can group database entities into folders.
Create a Folder
- Right-click DB Entities in the Explorer Menu.
- Select Add Folder and provide a name for the folder.