Our database has been designed in such a way that there are various schemes for production and various equivalent schemes for testing. For example, many tables are stored in the MyProduction schema, while the same tables are stored in the MyTest schema.
What I want to do is determine which schema is used by the table, so I know which one needs to be changed to it. Thus, by default, everything will be within the framework of production schemes. In the OnModelCreating event for DbContext, if I need to point to a test (defined using some true / false configuration), I need to determine the production scheme used, and then point to the test equivalent.
I already know how to install the circuit, but I cannot find how to get it. Any ideas how I can determine the schema the table uses?
Thanks.
user134363
source share