for example:
procedure CreateDynamicProps(aClass, aChildClass: TClass; aSetup: TMappingSetup);
var
hProps, hChildProps: TDynamicPropertyList;
begin
hProps := aSetup.DynamicProps[aClass];
hChildProps := aSetup.DynamicProps[aChildClass];
// Association works:
hProp := TDynamicProperty.Create(csProps, 'AssocData', aChildClass.ClassInfo);
hProps .Add(hProp);
hProp.AddAssociation(Association.Create([], CascadeTypeAllRemoveOrphan));
hProp.AddColumn(JoinColumn.Create('AssocID', []));
// ManyValued Association does not work:
hProp := TDynamicProperty.Create(csProps, 'MVAssocData', TList<aClass.ClassInfo>);
hChildProps.Add(hProp);
hProp.AddAssociation(ManyValuedAssociation.Create([], CascadeTypeAllRemoveOrphan, 'AssocData'));
end;
So I know the Class and it exists.