0

I have 2 projects in my solution:

  1. Server.API

This is a web api project. The web.config has a section for <connectionStrings>, and there's one connection string available.

  1. Server.Model

This is where 2 models (database first) are located. The app.config also has a section for <connectionStrings>, and there are 2 connection strings, one for each model.

The initial solution was developed on one machine. Now I'm using a second machine.

When I try to update the model from the database (right-click in EF designer), I get to choose my data connection, and in the list of available connections, I get the one in the Server.API!

How does the designer know about this connection, and why doesn't it list the 2 connections that are the Server.Model project where the actual .edmx files are located?

1 Answer 1

2

You probably developed Server.API on the second machine, so Visual Studio (not the edmx) knows you previously used that specific connection for some task that required a connection (not even which task). It hasn't stored the other two yet.

Besides that, apparently the other two databases in the App.config of Server.Model are not accessible from the second machine, otherwise the Update Wizard would have used them without showing the "choose connection" page.

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.