I have many tables with the same model structure but with other table names with other data (in this case will be ~100 tables). I want to dynamically switch table name in ru
I did something like this. http://nodogmablog.bryanhogan.net/2013/08/entity-framework-in-an-dynamics-nav-navision-envirnoment/
I had tables which were identical, but they had different names. For example, a customer table but with different prefixes for different companies.
[ACME$Customer]
[SuperCorp$Customer]
I ended up using dynamic compilation. It's a pretty detailed blog post so I won't go into it here.