Fast loading dataset

How to quickly load a third-party dataset (for example, FDMemTable) into an Aurelius structure?

An interesting technique and example.

You will have to do it manually, iterating through the FDMemTable, instantiating the Aurelius entities and manually setting each property with the value from the dataset.


... or use RTTI provided that the name of the property can be "built" from the field name. Of course, this only works for very simple table structures and might be very complex if you have associations and multi-valued associations.