Using Sub-Properties for Inserting / Appending

Should Aurelius Dataset automatically create new instances for sub-properties?

concerning your example
https://doc.tmssoftware.com/biz/aurelius/guide/taureliusdataset.html#sub-property-fields

I tried this and got ECannotSetProperty

AureliusDataset1.Append;
try
  AureliusDataset1.FieldByName('Country.Name').AsString := 'Germany';
  AureliusDataset1.Post;
except
  AureliusDataset1.Cancel;
end;

So I have to make sure, that Country will be assigned?

No.

Yes.

When testing, take note of AureliusDataSet - Testing an EntityField to be null?

1 Like