1

I'm working with entity-framework and MVC and i have two databases in the same server.

I just want to do a select in a table in the "database1" then do another select in a table in the "database2" in the same code but i don't know how to configure two diferent databases in my project.

Can someone show me how to configure it to do this? and how to use it in the code?

1 Answer 1

1

You have to setup your connection in your database initilizer. In EF6 you have a good support for multiple databases.

Check this link: Using entity framework on multiple databases

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.