Examples¶
Bold for Delphi includes several example applications demonstrating different features.
Location¶
Examples are in the examples/ folder:
examples/
├── Simple/
│ ├── ObjectSpace/
│ │ └── MasterDetail/ # Basic CRUD operations
│ └── LogBridge/ # Logging integration
└── Compound/
└── Building/ # Associations demo
Simple Examples¶
MasterDetail¶
Location: examples/Simple/ObjectSpace/MasterDetail/
Basic CRUD application demonstrating:
- Creating and editing objects
- List handles and grids
- Database persistence
- Navigator controls
LogBridge¶
Location: examples/Simple/LogBridge/
Demonstrates integrating Bold with external logging frameworks.
Compound Examples¶
Building¶
Location: examples/Compound/Building/
More complex example showing:
- Multiple related classes
- Associations between objects
- Derived attributes
- OCL queries
Example Tutorials¶
More tutorials coming soon:
- Buildings & Owners - Associations between objects
- MasterDetail - Basic CRUD operations
- Constraints - Model validation
- Transactions - Transaction handling
- OCL Variables - Query parameters
- Renderers - Custom display
- TreeView - Hierarchical display
See also Derived Attributes in Core Concepts.
PDF Tutorials¶
In-depth tutorials are available in PDF format in the Doc/ folder:
| Tutorial | Description |
|---|---|
| Starting Bfd - Part 1 | Introducing the Basics |
| Starting Bfd - Part 2 | Extending Models |
| Starting Bfd - Part 3 | OCL Queries |
| Delphi and Model Driven Architecture | Complete MDA guide |
| ad970808_UML11_OCL.pdf | Official OCL Language Reference |
| Creating custom Bold-aware components.pdf | Building Bold-aware controls |
More PDFs: Doc folder on GitHub
Running Examples¶
- Open the example project in Delphi
- Build the project (Shift+F9)
- Configure database connection in the INI file
- Run (F9)
Database Configuration¶
Most examples use an INI file for database configuration. Edit the INI to match your database:
See First Application for database configuration examples.