How do change schema targeted by model?

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
extrakun
Posts: 22
Joined: Wed 20 Apr 2011 06:02

How do change schema targeted by model?

Post by extrakun » Tue 20 Sep 2011 11:00

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?

Shalex
Site Admin
Posts: 8245
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Thu 22 Sep 2011 11:43

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 .

Post Reply