Hi,
I read in the documentation how it is possible to define the DB schema for tables via the attribute [table('tablename','schemaname')]
Is it possible to change the table schema at runtime (I would like to be able to define it dynamically) ?
Best Regards
The approach is described here:
The only difference is that for schema you should change the property Schema
:
TMappingExplorer.Default.GetTable('TProdutos').Schema := 'NewSchema';