I use a Oracle Data Provider for .NET (Oracle ODP.NET) in a .NET web application and I connect to database with Entity Framework.
When I create the Entity Data Model, in Web.config, VS2010 create a connection string like this:
<add name="eBoardingEntities" connectionString="metadata=res://*/Models.eBoardingModel.csdl|res://*/Models.eBoardingModel.ssdl|res://*/Models.eBoardingModel.msl;provider=Oracle.DataAccess.Client;provider connection string="DATA SOURCE=emobile;PASSWORD=CHECKIN_USER;PERSIST SECURITY INFO=True;USER ID=CHECKIN_USER"" providerName="System.Data.EntityClient" /></connectionStrings>
But when I deploy the application in production environment, I change the data souce in "DATA SOURCE=emobileProduction".
The application in production environment does not work. The error application is : "Table or view not found". The application is not connected to DB.
To make it work I need to cancel the Entity Data Model and regenerate this with a new connection to production database.
Any help to not regenerate Entity Data Model, without having to reset connection to database of production?