Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

MVC3 Entity Framework Solution with Seperate Projects

Avatar of CubeRoot
CubeRootFlag for United States of America asked on
C#
3 Comments1 Solution603 ViewsLast Modified:
I've been working on understanding MVC3 with Entity Framework for a couple of weeks now. I'm sure I'll have more questions in the coming days but for now. I found some articles that suggest keeping my Entity framework, Interfaces, Business Logic, and the Main MVC site all in seperate projects in the same solution. I've got this all setup and it's builds with no issues. I'm ready to define the DBContext and I'm not sure where to place the references.

My Project looks like this:

MyBusinessLogic (Added References: MyInterfaces, MyEntityModel)
MyEntityModel
MyInterfaces
MyWebsite (Added References: MyInterfaces, MyBusinessLogic)

Where do I put the DBContext file and do I need to do anything special to communicate between the website, the businesslogic, and the entityframework?

I'm also very interested if there are any books on mvc3 that use this same approach where it has the seperate projects and outlines the development process?
ASKER CERTIFIED SOLUTION
Avatar of Avodah
AvodahFlag of Western Sahara imageServes the Most High - Not Religion

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

Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answers