MVC 2 Tips & Tricks
MVC 2 Tips & Tricks
MVC 2 Tips & Tricks
{Speaker Name}
{Role}, Headspring {email}@headspring.com @{twitter} http://Headspring.com
Why us?
2 years of real experience with ASP.NET MVC Book: New edition: http://manning.com/palermo2 Training: http://headspring.com
Microsft MVPs ASPInsiders
Each tip was a lesson learned the hard way during project delivery at Headspring We employ all of these techniques in every current ASP.NET MVC project.
Pharmaceuticals Law enforcement Energy Consumer retail Air travel Etc
Visual Studio 2010 / C# ASP.NET MVC 2 SQL Server 2008 Express (database named HeadspringExample) MvcContrib NHibernate w/ Fluent C# mappings AutoMapper StructureMap Tarantino WatiN
Functional walk-through
1. View Models
View-Specific Model
2. AutoMapper
Projection
Solution: Automapper
3. Templated Helpers
Customization
4. Expression-Based Helpers
5. Model Binders
6. Controller Factories
7. Action Results
Reduce Duplication
Simplify Responsibilities
8. View Compilation
9. Portable Areas
Wire in
http://headspringlabs.codeplex.com
http://codecampserver.codeplex.com
http://github.com/jeffreypalermo/mvc2inaction http://manning.com/palermo2
HTTP