Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6811483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:19:59+00:00 2026-05-26T20:19:59+00:00

I have been reading countless articles about how to architect a new MVC 3

  • 0

I have been reading countless articles about how to architect a new MVC 3 application using best practices.

90% of the articles combine the EF EDMX files into the same project as the MVC app. Those that do seperate these items into their own projects don’t clarify which project each goes into and what references each project has. Usually they consist of code snippets that are great to teach how to do a specific function, but don’t tell me how to architect the solution.

I believe that I need at least 5 projects in my solution. Can anyone tell me if I have the correct layout here?

  • Data Access Layer – Contains the EF EDMX files. (Perhaps the DBContext auto-generated code?)
  • Business Layer – Contains the IRepository and Repository classes, UoW classes, as well as the business logic for the domain. – Contains reference to DAL.
  • ViewModels – Contains the viewmodels that will use AutoMapper to go between my DAL and the presentation layer. – Contains reference to DAL.
  • MVC 3 App – Standard MVC 3 app. Contains references to the BusinessLayer and the ViewModels projects.
  • Test – Unit testing.

Does this look right? Can anyone point me to a good article that uses n-tiered development with ViewModels, AutoMapper, Repository patterns and EF4?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:20:00+00:00Added an answer on May 26, 2026 at 8:20 pm

    I like the following

    Domain – contains models and ViewModels

    Services -business logic and viewmodel hydrating (ie population) code

    Contracts or interfaces – repository interfaces, unit of work, IContext, and ICache
    Web site
    DataAccess – concrete implementation of entity framework

    Some include their AutoMap code directly as an action filter as an attribute inside the web project. My automap code is done in the services project (but again this is up to you) unless I can use the attribute to do it in the controller.

    btw see Jimmy’s nice attribute here:
    http://lostechies.com/jimmybogard/2009/06/30/how-we-do-mvc-view-models/

    What you have outlined above is fine as well though. This is a very subjective matter. My general recommendations are that ‘if someone can open a project and have an idea where to look for something, you are likely doing it correctly’

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been reading about bcrypt (application perspective). Thinking of using it to store
I have been reading documentation about the new features that IIS 7.5 offers regarding
I have been reading a couple of articles on stack overflow about aggreation and
I have been reading about using nHibernate and multiple datasources and I get the
I have been reading about using Sharp Architecture to control nhiberate via Wcf. Is
I have been reading through the C++ FAQ and was curious about the friend
I have been reading about the differences between Table Variables and Temp Tables and
I have been reading so many topics here about this, but I could not
I have been reading through a few articles on PDO and they seem to
I have been reading about how the dojo 1.7 loader uses an AMD API/framework

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.