Is there a way to configure EntitySet Schema at runtime?
Posted: Thu 14 Apr 2011 08:53
We're approaching a production stage of our application that uses dotConnect for Oracle and Entity Framework, and production configuration requirements are different from our development server convention.
Development:
- Everyone uses his own user and schema when working with the database. To achive this we removed schema name from a generated SSDL:
This works fine so users "John" and "Pete" can create their own schemas and the model will use the schema that matches user name.
Production:
- Everyone has to use one dedicated schema, so leaving schema name blank won't work, we have to explicitly set it:
The dilemma is that this has to be compiled right into a model DLL, and once it's there it will no longer work with local develpment environment.
So the question is whether it's possible to assign the schema to an EntitySet at runtime, so we don't need to compile a special production version of the model DLL (this would be a maintenance disaster).
Thanks in advance.
Development:
- Everyone uses his own user and schema when working with the database. To achive this we removed schema name from a generated SSDL:
This works fine so users "John" and "Pete" can create their own schemas and the model will use the schema that matches user name.
Production:
- Everyone has to use one dedicated schema, so leaving schema name blank won't work, we have to explicitly set it:
The dilemma is that this has to be compiled right into a model DLL, and once it's there it will no longer work with local develpment environment.
So the question is whether it's possible to assign the schema to an EntitySet at runtime, so we don't need to compile a special production version of the model DLL (this would be a maintenance disaster).
Thanks in advance.