Hello, friends!
I recently started getting to know Firebird 3.0.2.
However, in the tools "out of the box", I did not find things that were extremely important to me, such as binding to table classes from the database.
Here is my example:
I use Virtual String Tree to display data from a database (this is a list of streets). To improve performance, I used records.
TStreet = record
Id: integer;
Name: string;
end;
However, in the future, everything changed in my work Firebird database has a table called Streets with the following parameters:
In the future, I still plan to create a separate class using the
MVC pattern, like this template:
TStreetEx = class
private
FId: integer;
FName: string;
procedure SetId (AValue: integer);
procedure SetName (AValue: string);
public
property Id: integer read FId write SetId;
property Name: string read FName write SetName;
end;
So, can I bind the fields of the Streets table to the fields of my TStreetEx? For them to be loaded automatically (for example, by binding to
TSQLQuery), then they were changed through the program interface, and then saved.
p.s. so I understand, to use several TStreetEx I need to create a separate class TStreetsList with the methods
BeginUpdate and
EndUpdate, and then shove them into the VST...