ASP.NET MVC 4

Tuesday, October 1, 2013

Includes new Web API

New Mobile project Template

Task Support for Asynchronous Controllers!

Features:

  1. Model View Controller Pattern
  2. Convention over configuration
  3. Embraces HTTP protocol
  4. Database Migrations
  5. Deployment to the cloud
  6. Rapid Application Development

Create an empty Visual Studio Solution


Add a class library project


Add 2 classes, mark the properties as virtual


Create an abstraction to get at information pertaining to the two classes


Add an ASP.NET MVC 4 Web Application, Internet Template


View installed packages in packages.config



To update, right click references, manage Nuget packages and click update


MVC Pattern


Add a reference from web project to domain project



Add Folder Infrastructure and class LocationDB


Implementation of LocationDB class



Enable Database migrations


Creates folder Migrations with Configuration class, enable automatic migration



Seed the database


Create Database with seed in SQL Server Express Database

Default Success Warning Important Info Inverse
B S W I ? O