Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

ASP.NET MVC Solution Best Practices

Download

Right click “Save as…”

Developers choose ASP.NET MVC because it provides for more control over the resulting HTML, better separation of concerns, and better testability. But these benefits are only fully realized if the project and solution is set up properly. Otherwise, it's very possible to create a tightly coupled Big Ball of Mud solution that's difficult to test and change. In this session, we'll create a 'Walking Skeleton' solution of a simple web application using ASP.NET MVC 4 that shows off certain best practices of creating maintainable, loosely coupled solutions.

Follow the Discussion

  • Great no-nonsense presentation on organizing an ASP.NET MVC solution into "Core" (Interfaces, Models, and Services), "Infrastructure" (Repositories, Data Access context/helpers, 3rd-Party Service Implementations like Email, Payment, etc), Web (Controllers, Views, ViewModels, and HTML/CSS/JSS) and "Tests" projects.  The speaker takes you from the starting point of a default ASP.NET MVC 4 project ( examples apply to any version of ASP.NET MVC) and refactors the code into multiple projects using what he calls the "Onion Architecture".  Before viewing, I'd recommend that you should have some experience with creating ASP.NET MVC sites and a familiarity with writing Unit Tests.  The full source code for the sample "Guestbook Application" is available on the presenter's blog: http://ardalis.com/aspconf-2012-sessions

  • Thanks

    Very Useful Session and Solves the problem of  "separation of Concern". Big Smile

  • SoerenSoeren

    Great presentation. Learned a lot. Can't get to the sourcecode though, site seems to be down..

Remove this comment

Remove this thread

close

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.