Overview
RTTI providers enable ORM (Object-Relational Mapping) by converting custom Delphi/Pascal classes and records into TDataItem structures and vice versa. Location:BI.RTTI.pas:35,70
TRTTIProvider
Base class for RTTI-based data providers.Constructor
AType: Type information for your class/recordAVisibility: Which members to include (Public, Published, etc.)AMembers: Fields, Properties, or Both
Properties
TTypeProvider<T>
Generic provider with type-safe access to data.Constructor
Methods
Add Data
Access Data
Search Data
Modify Data
Primary Key
Usage Examples
Define Your Record
Create Provider
Using Arrays
Using Generic Lists
Search and Update
Working with Classes
Advanced Features
Nested Records
Visibility Control
Performance Tips
- Batch Adds: Use array or list overloads instead of adding one by one
- Pre-allocate: Use CreateArray when you know the data size
- Avoid Find: Use Primary key for faster lookups
- Clear vs New: Use Clear to reuse provider instead of Free/Create
