ASP.NET MVC 5

Class Times

  • Monday 12:30 to 1:15
  • Wednesday 12:30 to 1:15

Office Hours

  • Monday 18:00 to 18:30
  • Wednesday 18:00 to 18:30

VS 2013 Tour

https://www.visualstudio.com/get-started/setup/set-up-vs

https://www.visualstudio.com/downloads/download-visual-studio-vs

IDE

An integrated development environment (IDE) is a software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of a source code editor, build automation tools and a debugger.

Tools -> Extensions and Updates

Update Nuget Package Manager

File -> New Project

ASP.NET Web Application

MVC

Run the application

Press Play

Right click on solution -> Manage Nuget Packages for Solution

Update Your Nuget Packages

Good Tutorials

  • http://www.codeproject.com/Articles/866143/Learn-MVC-step-by-step-in-days-Day
  • http://www.pluralsight.com/courses/csharp-from-scratch

My Application

A web application that helps the good people of London bring together lost socks.

 

Users register,provide their neighbourhood, and upload an image and description of a single sock.

 

Registered users can browse socks to find their match.

Your Application

A web application that helps the good people of London order a pizza.

 

Users register, provide their address, and age (must be at least 16).

 

Registered users can select toppings and order.

 

The pizza is then delivered, and the user pays in cash.

Assignment

Create HTML page for registration.

 

Create HTML homepage.

 

Create HTML order page.

Value Type

A value type consist of two main categories:
Structs, Enumerations


Structs fall into these categories:
Numeric types: (Integer, decimal), bool, user defined structs.

 

Assigning one value type variable to another copies the contained value.

Reference Type

A reference type an instance of a class or array.

 

Copying one reference type to another copies it's location in memory.

Class

A class is a software representation of an object, providing properties and behaviours of the object.

For example a class a ball has radius as a property, and bounce as a behaviour.

These properties and behaviours contain visibility with regards to other classes in the system.  These include

  • Private – only visible to its self
  • Protected – visible to classes that inherit it
  • Public – visible to all classes

 

Object

An object is an instantiation of a class.

Following the ball example, we can make a ball, called myBall, constructed from the Ball class. This is accomplished by calling the constructor method (behaviour) of the class, which allocates memory to store the object and performs any coded start-up functionality.

Interface

An interface contains only the signatures of methods and properties.

A class that implements the interface must implement the members of the interface.

Repository

Generically refers to a central place where data is stored and maintained.

CRUD

Acronym for CreateRetrieveUpdateDelete.

It is a term commonly used to describe basic database functions

ASP.NET MVC5

By Todd Adams

ASP.NET MVC5

Learn how to create a ASP.NET MVC 5 web application.

  • 803