The XPO Library provides the capability to create classes and members at runtime by customizing the metadata dictionary. Besides creating persistent members mapped to database columns, it is also possible to create collection-type members with associations. This example demonstrates both one-to-many and many-to-many associations added to existing persistent classes dynamically and how dynamic properties can be accessed.
Note that all metadata customizations must be done before a data layer is created with the customized dictionary.
See also:
XAF-specifics: How to customize a Business Model at runtime (Example).
Related XPO classes: DevExpress.Xpo.Metadata Namespace