Hi there,
Don't you have some persistent fields defined in your Aurelius dataset?
nope, I have no persistent fields there.
TAureliusDataset uses the existing entity mapping as the base for the class fields/properties that it considers to be data fields (TFields).
I have a question regarding this TEntityGrupo that I have posted the code.
Have you declared the field as persistent field? Fields for subproperties are not defined automatically for the dataset, you have to create persistent fields for them.
It's important to note that sub-property fields are not created by default when using default fields. In the example of TCustomer class above, only field "Country" will be created by default, but not "Country.Name" or any of its sub-properties. To use a sub-property field, you must manually add the field to the dataset before opening it. Just like any other TDataset, you do that at design-time, or at runtime:
with TStringField.Create(Self) do
begin
FieldName := 'Country.Name';
Dataset := AureliusDataset1;
end;