The display modes feature in ASP.NET MVC 4 helps with web browser detection in mobile web applications. Brian Mains demonstrates how to use display modes in MVC 4 to create both a desktop browser view and an alternative mobile view for a web app, providing code examples and a downloadable demo web application.
Brian Mains helps you sort through mobile development options by running down some of the most popular tools and frameworks available for handling mobile-device detection, designing responsive websites, and building mobile websites and native mobile applications.
Brian Mains guides you in developing a database-access application architecture using the framework, first introducing Entity Framework's ObjectContext, which handles much of the database work in an app, and then exploring basic techniques for working with the ObjectContext, patterns used to access database data, how to establish a link to the repository, and querying approaches.
The new Razor view engine, part of ASP.NET MVC 3, simplifies website development by providing a new inline syntax that's flexible yet compact. Brain Mains compares Razor to the MVC view engine and demonstrating how to work with it.
Entity Framework (EF) is Microsoft's main object relational mapping (ORM) tool for .NET developers, and the successor to LINQ to SQL--so it's a good time to start working with Entity Framework if you've been putting it off. Brian Mains provides a hands-on introduction to working with EF4, showing you how to create a sample model, generate code, create database queries, and perform CRUD operations.
Entity Framework has shortcomings, but as Brian Mains notes, it has come a long way since version one. And with all of its latest add-ons, Entity Framework is paving the way for its future as an excellent ORM.
Enhance what you can do in ASP.NET MVC with the Telerik MVC control suite. In this two-part series, Brian Mains explores four controls: Grid, PanelBar, Menu, and TabStrip. This first article looked at the Grid control, as well as the ScriptRegistrar and StylesheetRegistrar, two components Telerik created to manage style sheets and scripts. This second article looks at the PanelBar, Menu, and TabStrip controls.