'Adding table to database dynamically in runtime Entityframework core c#

I'm looking for a way to add table to database in runtime with entityframework core, i would like to use ModelBuilder or MigrationBuilder but I can't reach these class via Action method in controller i don't want to use OnModelCreating because it will run only one time once the application is executed, is there any solution to add table to database dynamically without need to do the following steps manual "stop the running of the application and add manually a class to modals and do 'add-migration' then the 'update-database'" ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source