We are building a XAF project using XPO. Our goal is to provide a base data model for our clients to capture their primary business collected information. However, each of our clients have the need to collect additional information which is not known to us at the time of development. As such we would like to allow the end-user to create additional tables and data columns to capture their unique information.
Our goal is to allow the clients to specify the table name to be attached to their application. Our XAF application could then use this information to display grid and detail forms to allow end-users access to the additional table information. My first impression of the proper solution is to build the XPO class at run time. Is something like this possible?
(A complete solution would include additional metadata such as table relationships as well as data validation requirements but I am trying to achieve the simple recognition of the table first.)
I have researched the DevExpress site and found a similar article:
XPO Data Source - Can I create a dynamic data source?
If this is possible, do you have any sample code that can point me towards adding a table to a XAF project during run time without having the XPO class previously defined?
Thank you in advance,
Tom