0

I created a connection using the server explorer, and dragged my entire database over (all tables) to the designer.

I want linq to use my connection string in the web.config when I deploy it, how do I make it do this instead of using the connection string created in the server explorer?

1 Answer 1

1
YourContextClass context = new YourContextClass(ConfigurationManager.ConnectionStrings["yourconectionstringid"].ConnectionString);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.