Hi,
We are deploying our application the production server, and is using a different database name from the one for our localhost.
EF, however, is still targeting the old database schema. We have already changed the connection string used by dotconnect Oracle, but the mapping details still show the classes mapped to the original database schema.
Is there anyway to change the schema targeted by the models?
How do change schema targeted by model?
Please remove the Schema attribute in the storage part of your model: http://www.devart.com/forums/viewtopic.php?t=17427 .
As an alternative, it is possible to leave the schema name in *.edmx file, but to turn off the generation of the schema name in run-time queries using the IgnoreSchemaName option of EF-provider configuration: http://www.devart.com/blogs/dotconnect/ ... orkarounds .
As an alternative, it is possible to leave the schema name in *.edmx file, but to turn off the generation of the schema name in run-time queries using the IgnoreSchemaName option of EF-provider configuration: http://www.devart.com/blogs/dotconnect/ ... orkarounds .