I have updated to the latest Aurelius and I have a problem. The string properties of the retireved objects are always empty.
I'm using FireDAC and if I drop a query + dbgrid, I can see all the values, so I think the DB layer is OK.
The procedure to retreve the data is this:
connAdmin.Connected := true;
FDTable1.Open(); // This is to check the data in the DB grid - debugging.. :)
AdminConnection := TFireDacConnectionAdapter.Create(connAdmin, false);
Manager := TObjectManager.Create(AdminConnection);
try
Result := Manager.Find<TCustomer>.List;
finally
Manager.Free;
end;
for itm in list do begin
ShowMessage(itm.AppName); // <-- Always empty!
end;
Also other string properties are empty, but dates, booleans, integers.. etc. are filled correctly.
You are destroying the manager, thus all objects retrieved as also destroyed. Strings are empty because they are managed types. Dates, booleans and integers are visible because they are still accessing memory garbage (the previous values).