An entity for multiple tables

You can change the name of table mapped to a class using this code:


SomeExplorer.GetTable('TProdutos').Name := 'PRODUTOS_2';


Where SomeExplorer is TMappingExplorer object. For example, to change it for the default explorer:


TMappingExplorer.Default.GetTable('TProdutos').Name := 'PRODUTOS_2';



Wagner R. Landgraf2017-03-06 19:35:06