MVC Demo Updated for RC

Microsoft recently published the RC release of their ASP.NET MVC Framework, and I’ve updated my “Jeff’s Hangar” MVC sample accordingly. The RC contains some cool new features, especially with regard to tooling support, but mostly it adds polish to features that were already there. I’ve rewritten the sample to be as true to the spirit of the RC as possible and to demonstrate how to build validation logic into model classes (where it generally belongs) rather than controller classes.

As with previous versions of this sample, I’ve built my model classes to be self-contained. Of course, since only the model knows where the data is physically stored, you could modify the model classes to get their data from SQL Server or another data source and not have to touch the rest of the code.

Jeff Prosise

View Comments

  • Hi Jeff -
    Since you're an ace Silverlight pilot as well, how would you apply the MVC pattern to a Silverlight app! :-)
    Mark

  • Hey Jeff,
    I have ur MVC RC version of Commerce.MVC, and the latest VS2008 and fixes, as well as the RC version of MVC installed.
    When I attempt to rebuild ur solution, I get a compile error around the subject of 'WrapPanel':
    Error 3 The type or namespace name 'WrapPanel' could not be found (are you missing a using directive or an assembly reference?) C:ASP.NET C# 2SL02172009Commerce.MVC.SilverlightMDCSilverlightDemoobjDebugProductDetails.g.cs 41 18 MDCSilverlightDemo
    I'm wondering what I did wrong and why this beaut will not compile Any ideas?
    And, I'm wondering about a wonderful, simple, elegant approach to doing a Silverlight View in MVC, also??

Recent Posts

8-Step AWS to Microsoft Azure Migration Strategy

Microsoft Azure and Amazon Web Services (AWS) are two of the most popular cloud platforms.…

4 days ago

How to Navigate Azure Governance

 Cloud management is difficult to do manually, especially if you work with multiple cloud…

2 weeks ago

Why Azure’s Scalability is Your Key to Business Growth & Efficiency

Azure’s scalable infrastructure is often cited as one of the primary reasons why it's the…

4 weeks ago

Unlocking the Power of AI in your Software Development Life Cycle (SDLC)

https://www.youtube.com/watch?v=wDzCN0d8SeA Watch our "Unlocking the Power of AI in your Software Development Life Cycle (SDLC)"…

1 month ago

The Role of FinOps in Accelerating Business Innovation

FinOps is a strategic approach to managing cloud costs. It combines financial management best practices…

1 month ago

Azure Kubernetes Security Best Practices

Using Kubernetes with Azure combines the power of Kubernetes container orchestration and the cloud capabilities…

2 months ago