I have string in xml format with database table name and column description (like column name and data type) and I need to use it for create model(which will map the table) or modify model according the string at runtime. What is the best solution to do this?
When application is running, I need to access some table, with some columns, that can be changed in time, so i need to adapt model for this table.
Please recommend me the technique via I can reach the working solution. Thanks
My data: I have this in string var:
<xml>
<col>
<name>OS</name>
<type>string</format>
</col>
<col>
<name>Name</name>
<type>string</format>
</col>
<col>
<name>Number</name>
<type>int</format>
</col>
</xml>
This xml string I obtain after some user action. So, I need to use it for access to table in .NET MVC. I use NHibernate, so I need to have model which map the table(name of the table is contained in my xml string) and then add NHibernate mapping for this model, I think. But I don't know, how to do it by some "clear" way