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
Avodah
Serves the Most High - Not Religion

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

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros