0

I have used MVC thus far in a traditional EF sense by creating POCO first objects and then adding this to a database context but I have a new problem in that I am trying to recreate a legacy system but using the MVC framework but it uses a connection to multiple different databases and tables.

In the legacy solution they use Enterprise library to create the link to databases but I am not sure that this is the best option available and was wondering what are the options open for dbconext in regards to different database connections at the same time, is this possible?

2
  • Could you provide a few access pattern examples? For example: Are you typically hitting multiple databases with one request? Commented Feb 4, 2016 at 22:51
  • 1
    MVC doesn't know anything about databases. The only thing that connects to databases as your describing is Entity Framework. I suggest you change your title. Commented Feb 5, 2016 at 1:04

1 Answer 1

2

The question is nothing to do with MVC. Besides, ASP.Net MVC (Presentation Layer) should not even need to know about what kind of ORM or database at Data Access Layer.

Back to original question, it is not worth using Entity Framework, if you have to query two databases at the same time.

I suggest you want to look at other ORM like Dapper.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks Win sorry for the confusion in the question dont think I put it very elequoently
@Jay I would suggest use nhibernate ORM

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.