SlideShare a Scribd company logo
AHM Pervej Kabir
Analyst Programmer
pervej_kabir@yahoo.com
Cell:+8801757051005 Day-1: 06 September 2017
ASP.Net C#- MVC-5 Training
Introduction
 About MVC
 Routing Example
 Logic Layer
View Engine
Request Response Process
Entity framework-EF Example
 About Model –Viewer- Controller (MVC)
 What is MVC?
 MVC stand for Model-Viewer-Controller
 It is software architectural pattern
o An architectural pattern is a general, reusable solution of a commonly occurring problem in
software architecture within the given context.
o Architectural pattern is similar to software design pattern but have a broader scope.
 It divided an application’s implementation in three components (Model, Viewer and controller)
 The Model represent the application core (for instance a list of database records)
 The view displays the data (the database records)
 The controller handles the input.
 Model –Viewer- Controller (MVC) Design Goal
 Separation of Concern
 “The process of breaking a computer program into distinct features in functionality as little as possible “-
Wikipedia
 Responsibility of Model, viewer & controller are separate
 Embrace the web
 Able to adopt the standard web technology HTML, CSS, CSS3 etc.
 Run on Asp.Net
 Run on top of Asp.Net run time
 Extensible
 Use different plugins and changes as you like
 Testable
 MVC design to allow loosely couple & solid object oriented concept
 Any solution & code designed in the fashion is testable
 MVC Logic Layer
 MVC Provides full control over HTML, CSS and javascripts
 You can think MVC Model defines web applications with 3 logic layers
o The business layer (Model logic)
o The display layer (Viewer logic)
o The input control (Controller logic)
 The Model is the part of application that handles the logic for the application data
o Often Model objects retrieve data ( and store data ) from a database.
 The View the part of application that display data
o Most often Views are created from the Model data.
 The Controller is the part of application that user interaction
o Typically The Controller read data from the view, control user inputs and inputs data to the
model.
 The MVC separation helps to manage complex applications because you can focus on one aspect of a time.
o For example, you can focus on the view without depending on the business logic .
o It all makes essayer to test an application
 The MVC separation also simplifies group development
o Different developers can work on the view, the controller logic and the business logic in parallel.
.
 What is view engine?
 The view engines are responsible for rendering the HTML from views to the browser.
 The view engines template will have different syntax for implementation.
 Currently few number of view engines are available for Asp.net-MVC and top four are RAZOR, Traditional
ASPX, SPARK and Nhaml.
 MVC Request and Response Process
ASP.Net MVC Request response process step by step following bellow-
 1) User send the request by the URL
 2) UrlRoutingModule intercepts /cut offs the request and starts parsing it.
 3) The appropriate controller and handler will be identified from the URL by looking at the routing table
collection. Also any data coming alone with the request is kept in RouteData.
 4) The appropriate action in the identified controller will be executed.
 5) The action will call the model class based on data
 6) The action will then pass to some view and tell the view to proceed
 7) Now the view will execute and create the markup based on logic and model’s data then push the
HTML back to the browser
 Entity Framework –EF Example
 How to learn for Entity Framework –EF-6
 EF: Database First
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
 EF: Code First
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
391

More Related Content

PPT
ASP.NET MVC Presentation
PPTX
Asp.net c# MVC-5 Training-Day-2 of Day-9
PPTX
Asp.net c# mvc Training-Day-5 of Day-9
PPTX
Asp.net c# mvc Training: Day-3 of Day-9
PPTX
Asp.net c# mvc Training Day-4 of Day-9
PDF
Generic repository pattern with ASP.NET MVC and Entity Framework
PPTX
ASP .Net MVC 5
PPTX
MVC - Introduction
ASP.NET MVC Presentation
Asp.net c# MVC-5 Training-Day-2 of Day-9
Asp.net c# mvc Training-Day-5 of Day-9
Asp.net c# mvc Training: Day-3 of Day-9
Asp.net c# mvc Training Day-4 of Day-9
Generic repository pattern with ASP.NET MVC and Entity Framework
ASP .Net MVC 5
MVC - Introduction

What's hot (20)

PPTX
ASP.NET MVC.
 
PDF
REPORT ON ASP.NET
PDF
Difference between asp.net mvc 3 and asp.net mvc 4
PPTX
Feature and Future of ASP.NET
PPTX
Asp.net mvc presentation by Nitin Sawant
PPTX
ASP.NET Brief History
PDF
Difference between asp.net web forms and asp.net mvc
PPTX
MVC4 framework
PDF
Difference between asp.net web api and asp.net mvc
PDF
ASP.NET MVC difference between questions list 1
PDF
Introduction to asp.net
PPTX
ASP.NET MVC 5 - EF 6 - VS2015
PPTX
Introducing Razor - A new view engine for ASP.NET
PPTX
Asp.net MVC training session
PDF
Difference between wcf and asp.net web api
PPTX
Asp.Net Core MVC with Entity Framework
PPT
Silver Light By Nyros Developer
PPS
Asp Architecture
PPT
MVC Architecture in ASP.Net By Nyros Developer
PDF
ASP.NET MVC 3
ASP.NET MVC.
 
REPORT ON ASP.NET
Difference between asp.net mvc 3 and asp.net mvc 4
Feature and Future of ASP.NET
Asp.net mvc presentation by Nitin Sawant
ASP.NET Brief History
Difference between asp.net web forms and asp.net mvc
MVC4 framework
Difference between asp.net web api and asp.net mvc
ASP.NET MVC difference between questions list 1
Introduction to asp.net
ASP.NET MVC 5 - EF 6 - VS2015
Introducing Razor - A new view engine for ASP.NET
Asp.net MVC training session
Difference between wcf and asp.net web api
Asp.Net Core MVC with Entity Framework
Silver Light By Nyros Developer
Asp Architecture
MVC Architecture in ASP.Net By Nyros Developer
ASP.NET MVC 3
Ad

Similar to Asp.net c# MVC-5 Training-Day-1 of Day-9 (20)

PPTX
Getting started with MVC 5 and Visual Studio 2013
PDF
Asp 1-mvc introduction
PDF
ASP.NET MVC 5 Building Your First Web Application (A Beginner S Guide
PPTX
Intro ASP MVC
PPTX
Introduction to mvc architecture
PPTX
ASP.NET MVC Presentation
PPT
MVC ppt presentation
PPT
Asp netmvc
PPTX
Model view controller (mvc)
PDF
Mastering asp.net mvc - Dot Net Tricks
PDF
IRJET- MVC Framework: A Modern Web Application Development Approach and Working
PDF
Aspnetmvc 1
PDF
Asp 1a-aspnetmvc
PPT
Asp.net,mvc
PPTX
ASP.net MVC Introduction Wikilogia (nov 2014)
PPTX
ASP .NET MVC Introduction & Guidelines
PPTX
MVC Framework
PPTX
Programming is Fun with ASP.NET MVC
PPTX
Hanselman lipton asp_connections_ams304_mvc
Getting started with MVC 5 and Visual Studio 2013
Asp 1-mvc introduction
ASP.NET MVC 5 Building Your First Web Application (A Beginner S Guide
Intro ASP MVC
Introduction to mvc architecture
ASP.NET MVC Presentation
MVC ppt presentation
Asp netmvc
Model view controller (mvc)
Mastering asp.net mvc - Dot Net Tricks
IRJET- MVC Framework: A Modern Web Application Development Approach and Working
Aspnetmvc 1
Asp 1a-aspnetmvc
Asp.net,mvc
ASP.net MVC Introduction Wikilogia (nov 2014)
ASP .NET MVC Introduction & Guidelines
MVC Framework
Programming is Fun with ASP.NET MVC
Hanselman lipton asp_connections_ams304_mvc
Ad

More from AHM Pervej Kabir (12)

PPTX
Business Analysis.pptx
PPT
Knowledge share about scalable application architecture
PPT
Software security engineering
PPT
Software security engineering
PPT
Shot note about project management
PDF
Data Collection From Field
PDF
Automated Survey Data Received and Sync From Field
PDF
Automated Survey Question Creator Management
PPTX
Presentation
DOC
Reporting about Overview Summery of ISO-27000 Se.(ISMS)
Business Analysis.pptx
Knowledge share about scalable application architecture
Software security engineering
Software security engineering
Shot note about project management
Data Collection From Field
Automated Survey Data Received and Sync From Field
Automated Survey Question Creator Management
Presentation
Reporting about Overview Summery of ISO-27000 Se.(ISMS)

Recently uploaded (20)

PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Nekopoi APK 2025 free lastest update
PPTX
Computer Software and OS of computer science of grade 11.pptx
PPTX
Introduction to Artificial Intelligence
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
top salesforce developer skills in 2025.pdf
PDF
Understanding Forklifts - TECH EHS Solution
PDF
Design an Analysis of Algorithms II-SECS-1021-03
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Why Generative AI is the Future of Content, Code & Creativity?
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
wealthsignaloriginal-com-DS-text-... (1).pdf
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Nekopoi APK 2025 free lastest update
Computer Software and OS of computer science of grade 11.pptx
Introduction to Artificial Intelligence
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Softaken Excel to vCard Converter Software.pdf
top salesforce developer skills in 2025.pdf
Understanding Forklifts - TECH EHS Solution
Design an Analysis of Algorithms II-SECS-1021-03

Asp.net c# MVC-5 Training-Day-1 of Day-9

  • 1. AHM Pervej Kabir Analyst Programmer [email protected] Cell:+8801757051005 Day-1: 06 September 2017 ASP.Net C#- MVC-5 Training
  • 2. Introduction  About MVC  Routing Example  Logic Layer View Engine Request Response Process Entity framework-EF Example
  • 3.  About Model –Viewer- Controller (MVC)  What is MVC?  MVC stand for Model-Viewer-Controller  It is software architectural pattern o An architectural pattern is a general, reusable solution of a commonly occurring problem in software architecture within the given context. o Architectural pattern is similar to software design pattern but have a broader scope.  It divided an application’s implementation in three components (Model, Viewer and controller)  The Model represent the application core (for instance a list of database records)  The view displays the data (the database records)  The controller handles the input.
  • 4.  Model –Viewer- Controller (MVC) Design Goal  Separation of Concern  “The process of breaking a computer program into distinct features in functionality as little as possible “- Wikipedia  Responsibility of Model, viewer & controller are separate  Embrace the web  Able to adopt the standard web technology HTML, CSS, CSS3 etc.  Run on Asp.Net  Run on top of Asp.Net run time  Extensible  Use different plugins and changes as you like  Testable  MVC design to allow loosely couple & solid object oriented concept  Any solution & code designed in the fashion is testable
  • 5.  MVC Logic Layer  MVC Provides full control over HTML, CSS and javascripts  You can think MVC Model defines web applications with 3 logic layers o The business layer (Model logic) o The display layer (Viewer logic) o The input control (Controller logic)  The Model is the part of application that handles the logic for the application data o Often Model objects retrieve data ( and store data ) from a database.  The View the part of application that display data o Most often Views are created from the Model data.  The Controller is the part of application that user interaction o Typically The Controller read data from the view, control user inputs and inputs data to the model.  The MVC separation helps to manage complex applications because you can focus on one aspect of a time. o For example, you can focus on the view without depending on the business logic . o It all makes essayer to test an application  The MVC separation also simplifies group development o Different developers can work on the view, the controller logic and the business logic in parallel. .
  • 6.  What is view engine?  The view engines are responsible for rendering the HTML from views to the browser.  The view engines template will have different syntax for implementation.  Currently few number of view engines are available for Asp.net-MVC and top four are RAZOR, Traditional ASPX, SPARK and Nhaml.  MVC Request and Response Process ASP.Net MVC Request response process step by step following bellow-  1) User send the request by the URL  2) UrlRoutingModule intercepts /cut offs the request and starts parsing it.  3) The appropriate controller and handler will be identified from the URL by looking at the routing table collection. Also any data coming alone with the request is kept in RouteData.  4) The appropriate action in the identified controller will be executed.  5) The action will call the model class based on data  6) The action will then pass to some view and tell the view to proceed  7) Now the view will execute and create the markup based on logic and model’s data then push the HTML back to the browser
  • 7.  Entity Framework –EF Example
  • 8.  How to learn for Entity Framework –EF-6
  • 27.  EF: Code First
  • 39. 391