I've finished building my blog using EF and Code First.
EF was running against my local SQL Express instance, with [DBO] schema.
Now i want to publish the blog, and i have done the following :
- Generetade the scripts for the tables and all objects from SQL Express and change [dbo] to my [administrator] schema from my server.
- Ran the scripts against the server. No issues, all objects were created an populated just fine.
- I have modified Webconfig and added my BlogContext connection string to point to the server not local sql express.
- Published the site.
The error i am getting is : Invalid object name 'dbo.Articles'. - where Articles is one of my entities. It resides on my sql server, [Administrator].Articles
.
As far as i can tell EF still thinks im using the DBO schema. Although i have added the connection string to point to administrator user.
How can i change the schema that EF thinks it should use?