Giter VIP home page Giter VIP logo

adventureworksapp's Introduction

AdventureWorksApp

Currently building at Qhode.com

This VS2010 solution is based on the work posted by SuperTigerZou at https://advsampleapp.codeplex.com/. This posting of the original solution is in keeping with Section 3.1 of the CDDL. It provides a working sample of ASP.Net MVC3, WF, MEF, EF and WCF technology and achitecture utillizing the AdventureWorks sample database. The solution on Codeplex was last updated (as of this posting) 23 Feb 2011.

Solution Origins

SuperTigerZou developed a good structure with this solution, evident by the compartmentalization of the different data source repositories and Entity Framework to their respective projects. The MVC layout was probably more typical boilerplate of 2011 MVC3, with a separation of layouts between desktop and mobile platforms and lack of resource bundling, but also with a healthy dose of jquery and jquery-ui to support the UX.

##Solution Update

I attempted to contact SuperTigerZou before posting this update to Github to allow his feedback and look at joining efforts. The original solution on Codeplex is currectly managed via TFS, so forking directly was not an option. If his solution is ever switched over to Git, instead of TFS, then I will adjust this posting accordingly. SuperTigerZou deserves most of the credit for assembling the solution and posting to Codeplex, regardless of the solution's origins before that.

I have been recently frustrated in the poor examples established in VS2010 MVC project templates of a flexible design. Previous samples of MVC4 that I had worked with involved the simplified ToDo database/app , but I wanted a sample with a more complex data model. I found this solution in a search for any samples utilizing MVC, Entity Framework and the AdventureWorks sample database. I already had the database set up locally. So, with a slight adjustment to the web application, switching it to a web project, and an adjustment to the web.config and .csproj file of the web project to properly resolve the web.webpages assembly, once the solution was properly built, the MVC project started up without a hitch.

From this point, all effort has been to update and improve without reducing functionality. Improvement should be defined here as a reduction in code/markup, positively impacting the maintenance needs of the solution. Web.Optimization is in use, as this assembly was not available until Sept 2011, about 6 months after the last update of the original solution. I have also established a stricter demarcation of the MVC project and companion test project, renaming it to .WebMVC3 and .MebMVC3.Tests, respectively. This allows me the freedom to add an MVC4/Tests project series to the solution, providing a side-by-side comparison between MVC3 and MVC4 projects and hopefully providing a needed spotlight on the benefits of MVC4 over MVC3.

Some of the MVC4 retro-fit is leveraged through MvcScaffolding and the EF 5.x DbContext, with the end goal of a more robust feature-set in the sample app than the original MVC3 edition had with less initial effort.

My hope from this effort is to help anyone who is trying to grapple with MVC3/4, Entity Framework, or some of the newer aspects of HTML5/CSS3/MVC4 utilizing toolsets like requireJS, KnockoutJS, SammyJS, jquery and/or jquery-ui. Additionally, I hope to see how MEF integrates with WebAPI in a Database First fashion and what that means to the likes of BreezeJS or JayData.

Contact

Blog (currently down): http://blog.ownby.net Twitter: Bishops_move

License

The CDDL that governs the Codeplex-hosted solution is still in play for this solution.

adventureworksapp's People

Contributors

bishopsmove avatar

Watchers

James Cloos avatar Sakaravarthi J avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.