Tuesday, 14 February 2017

Rahul Sharma: ASP.NET MVC

Rahul Sharma: ASP.NET MVC: MVC 3  VS  MVC 4  VS  MVC 5

CHAPTER-1

Web Applications:-


Web Applications are programs that are executed on a web server and accessed from a web browser.


Three Layers of a web application:-

  1. Presentation Layer
  2. Business Logic Layer
  3. Data Layer

Presentation Layer:-

Consists of the interface through which the users interact with the application.

Business Logic Layer:-

Consists of the components of the application that control the flow of execution and communication between the presentation layer and the data layer.

Data Layer:-

Consists of the components that expose the application data stored in databases to the business logic layer.

Architecture of a web Application:-

  1. Single Tier
  2. Two Tier
  3. Three Tier

Single Tier:-

In single tier architecture, all the three layers are integrated together and can be installed on a single computer. If the application needs to be accessed on multiple computers a separate installation required.

Two Tier:-

In two tier architecture, the three layers are distributed over two tiers, a client and a server. The presentation layer resides on each client computer, the business logic layer resides either on client or on server, and data access layer resides on the server.

Types of two tier architecture:-

1> Fat Client and thin server:-

The architecture in which the business logic layer resides on the client is known as the fat client and thin server.

2> Fat server and thin client:-

The architecture in which the business logic layer resides on the server is known as the fat server and thin client.


Three Tier architecture:-

In three tier architecture, the three layers of the application are placed as three different entities. This architecture is used for those applications in which merging the business logic layer with the presentation layer or the data layer may degrade the performance of the application.


MVC( Model View Controller):-

Model:-

Refers to a set of classes that describes the data that the applications work with.

View:-

Refers to the components that define an application user’s interface

Controller:-

Refers to a set of classes that handle communication from the user and the overall application flow. A controller responds to user input , communicates with the model, and decides the view to render.


Features of ASP.NET MVC:-

Routing:-

MVC has a powerful routing system. Routing is a feature that enables you to develop applications with comprehensible and searchable URLs.

Scaffolding:-

MVC provides a scaffolding feature that provides a quick way to generate the code for commonly used operations in a standardized way.

Convention over Configuration:-

Asp.Net MVC Supports Convention over Configuration, which is a software design paradigm that aims at reducing the number of decisions taken by developers.

Bundling and Minification:-

Bundling is a technique provided by MVC that allows you to combine multiple files , such as CSS and javascript into a single file. Bundling improves the request load time by reducing the number of requests to the server.
Another Technique minification removes  unnecessary white space and comments from javascript or CSS Code, and shorten variable names.


Structure of an ASP.NET MVC Projects:-
























No comments:

Post a Comment

Insert, Delete, Update Using Entity Framework and LINQ in ASP.NET 1> Create Database First 2> Create Table 3> Add ADO...