Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best MVC3 solution structure?

I plan to start a MVC3 project, and we hope this project will be the blueprint of MVC3 project for our company, please see below initial ideas: enter image description here

enter image description here

Guys, please help share your ideas and best practise!

like image 499
Harry Liu Avatar asked Nov 30 '11 03:11

Harry Liu


2 Answers

I recommend to have a look at Onion Architecture (image copyright: Jeff Palermo). I had some crazy depencdencies, too, (see Castle Windsor: Register components across multiple projects in solution) that can be expressed cleaner using Onion Architecture.

  1. The Onion Architecture : part 1
  2. The Onion Architecture : part 2
  3. The Onion Architecture : part 3

enter image description here

like image 121
Marius Schulz Avatar answered Oct 15 '22 04:10

Marius Schulz


My team at work uses a very similiar architecture - the primary difference is that our "object module" sits behind WCF. It's been a great advantage for us to have objects returned from WCF as it's taken very little effort to consume data in our MVC, Silverlight, and Windows apps.

like image 30
Tuck Avatar answered Oct 15 '22 02:10

Tuck