Working with ASP.NET MVC Models

This course is included in our On-demand training solution.

Overview

Models are the basic building block of any MVC application, as they represent how the application can manage and interact with data. In this course, you will learn how to add a model to an ASP.NET MVC application, how to implement business logic in a model, how to create and add a SQL Azure database, and how to validate user input with data annotations. You will also learn how to create and use default and custom model binders, as well as how to create databases and administer access to model classes using Entity Framework. This course is one of a series in the Skillsoft learning path that covers the objectives for the Microsoft MCSD exam 70-486.

Target Audience

Web developers seeking an introductory guide to developing efficient, secure, distributed web applications with adaptive user interfaces using the ASP.NET MVC 4 framework in Visual Studio 2013; individuals preparing for exam 70-486: Developing ASP.NET MVC 4 Web Applications

Prerequisites

none

Expected Duration

150 min.

Course Objectives

Course Introduction

Creating a New MVC Model Class

  • create a model class and access data from class properties in an ASP.NET MVC web application
  • Creating MVC Model Classes with Relationships

  • implement a relationship between two model classes in an ASP.NET MVC web application
  • Instantiating Model Objects from Controller Actions

  • instantiate an MVC model class object from a controller class action and display object property values in a view in an ASP.NET MVC web application
  • Using the DisplayName Data Annotation

  • use the DisplayName annotation on a model class object property to customize property label display in an application view in ASP.NET MVC web application
  • Using the DataType Data Annotation

  • use the DataType data annotation on a model class object property to affect how the property value gets displayed in an MVC view
  • Using the DisplayFormat Data Annotation

  • use the DisplayFormat data annotation on a DateTime field in order to customize the display format in an ASP.NET MVC view
  • Using Data Validation Annotations on Model Properties

  • validate user input data by applying data annotations to a model property in an ASP.NET MVC view
  • Using a Custom Data Validation Attribute

  • create a custom data validation attribute and apply it to a model class property in an ASP.NET MVC web application
  • Using the JQuery Validation Plugin

  • use the jQuery Validation plugin to carry out client-side validation in an ASP.NET MVC web application in Visual Studio 2013
  • Customizing Data Annotation Error Messages

  • customize validation error messages in ASP.NET MVC view
  • Using the Default Model Binder

  • use the default MVC model binder to pass HTTP request parameters to a controller action method in an ASP.NET MVC web application in Visual Studio 2013
  • Creating a Custom Model Binder Using Form Values

  • create and use a custom model binder to pass HTTP request parameters to a controller action using form field values in an ASP.NET MVC web application in Visual Studio 2013
  • Adding a Strongly-Typed View

  • generate a strongly-typed view in an ASP.NET MVC web application in Visual Studio 2013
  • Exercise: Working with ASP.NET MVC Models

    MONTHLY SUBSCRIPTION

    $129/month
     

    ANNUAL SUBSCRIPTION

    $1295/year

    Multi-license discounts available for Annual and Monthly subscriptions.