troubleshooting Question

Asp.Net Entity Framework 4.1 Code First DB connection changes

Avatar of rochestermn
rochestermnFlag for United States of America asked on
.NET ProgrammingASP.NETMicrosoft Development
1 Comment1 Solution784 ViewsLast Modified:
Im having some trouble pointing my asp.net mvc4 web application to another location.

I created the models/controller based on entity framework code first method.

Real simple app just a couple model classes.  They connected wonderfully to sql express but now I want to move the database to a test sql server.

Im not sure how to change the connection.  There is no connection string in the web.config so I have no idea where its storing the connection.  I have a connection in server explorer to sql express and also to my staging sql server.  The other thing I dont like is th wacky name it gives the database in sql server.  Gets a little long for my taste.

Any help is appreciated.
ASKER CERTIFIED SOLUTION
rochestermn

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros