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

AHM Pervej Kabir
AHM Pervej KabirAnalyst at ERA-InfoTech Limited um ERA InfoTech Ltd
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
1 von 39

Recomendados

Asp.net c# MVC-5 Training-Day-2 of Day-9 von
Asp.net c# MVC-5 Training-Day-2 of Day-9Asp.net c# MVC-5 Training-Day-2 of Day-9
Asp.net c# MVC-5 Training-Day-2 of Day-9AHM Pervej Kabir
472 views20 Folien
Asp.net c# mvc Training-Day-5 of Day-9 von
Asp.net c# mvc Training-Day-5 of Day-9Asp.net c# mvc Training-Day-5 of Day-9
Asp.net c# mvc Training-Day-5 of Day-9AHM Pervej Kabir
597 views19 Folien
Asp.net c# mvc Training: Day-3 of Day-9 von
Asp.net c# mvc Training: Day-3 of Day-9Asp.net c# mvc Training: Day-3 of Day-9
Asp.net c# mvc Training: Day-3 of Day-9AHM Pervej Kabir
545 views48 Folien
Asp.net c# mvc Training Day-4 of Day-9 von
Asp.net c# mvc Training Day-4 of Day-9Asp.net c# mvc Training Day-4 of Day-9
Asp.net c# mvc Training Day-4 of Day-9AHM Pervej Kabir
344 views16 Folien
Generic repository pattern with ASP.NET MVC and Entity Framework von
Generic repository pattern with ASP.NET MVC and Entity FrameworkGeneric repository pattern with ASP.NET MVC and Entity Framework
Generic repository pattern with ASP.NET MVC and Entity FrameworkMd. Mahedee Hasan
2.5K views21 Folien
ASP .Net MVC 5 von
ASP .Net MVC 5ASP .Net MVC 5
ASP .Net MVC 5Nilachal sethi
719 views15 Folien

Más contenido relacionado

Was ist angesagt?

ASP.NET MVC. von
ASP.NET MVC.ASP.NET MVC.
ASP.NET MVC.Ni
1.1K views12 Folien
REPORT ON ASP.NET von
REPORT ON ASP.NETREPORT ON ASP.NET
REPORT ON ASP.NETLOKESH
2.4K views26 Folien
Difference between asp.net mvc 3 and asp.net mvc 4 von
Difference between asp.net mvc 3 and asp.net mvc 4Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4Umar Ali
4.5K views5 Folien
Feature and Future of ASP.NET von
Feature and Future of ASP.NETFeature and Future of ASP.NET
Feature and Future of ASP.NETMd. Mahedee Hasan
2.1K views26 Folien
Asp.net mvc presentation by Nitin Sawant von
Asp.net mvc presentation by Nitin SawantAsp.net mvc presentation by Nitin Sawant
Asp.net mvc presentation by Nitin SawantNitin Sawant
2.3K views27 Folien
ASP.NET Brief History von
ASP.NET Brief HistoryASP.NET Brief History
ASP.NET Brief HistorySudhakar Sharma
1.9K views18 Folien

Was ist angesagt?(20)

ASP.NET MVC. von Ni
ASP.NET MVC.ASP.NET MVC.
ASP.NET MVC.
Ni 1.1K views
REPORT ON ASP.NET von LOKESH
REPORT ON ASP.NETREPORT ON ASP.NET
REPORT ON ASP.NET
LOKESH 2.4K views
Difference between asp.net mvc 3 and asp.net mvc 4 von Umar Ali
Difference between asp.net mvc 3 and asp.net mvc 4Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4
Umar Ali4.5K views
Asp.net mvc presentation by Nitin Sawant von Nitin Sawant
Asp.net mvc presentation by Nitin SawantAsp.net mvc presentation by Nitin Sawant
Asp.net mvc presentation by Nitin Sawant
Nitin Sawant2.3K views
Difference between asp.net web forms and asp.net mvc von Umar Ali
Difference between asp.net web forms and asp.net mvcDifference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvc
Umar Ali5.6K views
MVC4 framework von imarkovic
MVC4 frameworkMVC4 framework
MVC4 framework
imarkovic348 views
Difference between asp.net web api and asp.net mvc von Umar Ali
Difference between asp.net web api and asp.net mvcDifference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvc
Umar Ali2.7K views
ASP.NET MVC difference between questions list 1 von Umar Ali
ASP.NET MVC difference between questions list 1ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1
Umar Ali1.5K views
Introduction to asp.net von SHADAB ALI
Introduction to asp.netIntroduction to asp.net
Introduction to asp.net
SHADAB ALI2.6K views
ASP.NET MVC 5 - EF 6 - VS2015 von Hossein Zahed
ASP.NET MVC 5 - EF 6 - VS2015ASP.NET MVC 5 - EF 6 - VS2015
ASP.NET MVC 5 - EF 6 - VS2015
Hossein Zahed3.4K views
Introducing Razor - A new view engine for ASP.NET von Shiju Varghese
Introducing Razor - A new view engine for ASP.NET Introducing Razor - A new view engine for ASP.NET
Introducing Razor - A new view engine for ASP.NET
Shiju Varghese2.9K views
Asp.net MVC training session von Hrichi Mohamed
Asp.net MVC training sessionAsp.net MVC training session
Asp.net MVC training session
Hrichi Mohamed6.3K views
Difference between wcf and asp.net web api von Umar Ali
Difference between wcf and asp.net web apiDifference between wcf and asp.net web api
Difference between wcf and asp.net web api
Umar Ali3.3K views
Asp.Net Core MVC with Entity Framework von Shravan A
Asp.Net Core MVC with Entity FrameworkAsp.Net Core MVC with Entity Framework
Asp.Net Core MVC with Entity Framework
Shravan A272 views
MVC Architecture in ASP.Net By Nyros Developer von Nyros Technologies
MVC Architecture in ASP.Net By Nyros DeveloperMVC Architecture in ASP.Net By Nyros Developer
MVC Architecture in ASP.Net By Nyros Developer
Nyros Technologies4.3K views
ASP.NET MVC 3 von Buu Nguyen
ASP.NET MVC 3ASP.NET MVC 3
ASP.NET MVC 3
Buu Nguyen6.2K views

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

MVC 6 Introduction von
MVC 6 IntroductionMVC 6 Introduction
MVC 6 IntroductionSudhakar Sharma
1.5K views45 Folien
Mvc von
MvcMvc
Mvcabhigad
579 views14 Folien
Asp 1a-aspnetmvc von
Asp 1a-aspnetmvcAsp 1a-aspnetmvc
Asp 1a-aspnetmvcFajar Baskoro
19 views22 Folien
Aspnetmvc 1 von
Aspnetmvc 1Aspnetmvc 1
Aspnetmvc 1Fajar Baskoro
2K views22 Folien
An overview of microsoft mvc dot net von
An overview of microsoft mvc dot netAn overview of microsoft mvc dot net
An overview of microsoft mvc dot netneha sharma
100 views8 Folien
MVC von
MVCMVC
MVCRavi Bansal
755 views10 Folien

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

Mvc von abhigad
MvcMvc
Mvc
abhigad579 views
An overview of microsoft mvc dot net von neha sharma
An overview of microsoft mvc dot netAn overview of microsoft mvc dot net
An overview of microsoft mvc dot net
neha sharma100 views
Technoligent providing custom ASP.NET MVC development services von Aaron Jacobson
Technoligent providing custom ASP.NET MVC development servicesTechnoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development services
Aaron Jacobson878 views
Getting started with MVC 5 and Visual Studio 2013 von Thomas Robbins
Getting started with MVC 5 and Visual Studio 2013Getting started with MVC 5 and Visual Studio 2013
Getting started with MVC 5 and Visual Studio 2013
Thomas Robbins14.9K views
Asp net mvc series for beginers part 1 von Gaurav Arora
Asp net mvc series for beginers part 1Asp net mvc series for beginers part 1
Asp net mvc series for beginers part 1
Gaurav Arora571 views
ASPNet MVC series for beginers part 1 von Gaurav Arora
ASPNet MVC series for beginers part 1ASPNet MVC series for beginers part 1
ASPNet MVC series for beginers part 1
Gaurav Arora517 views
Programming is Fun with ASP.NET MVC von Ian Carnaghan
Programming is Fun with ASP.NET MVCProgramming is Fun with ASP.NET MVC
Programming is Fun with ASP.NET MVC
Ian Carnaghan10.7K views
ASP .NET MVC von eldorina
ASP .NET MVC ASP .NET MVC
ASP .NET MVC
eldorina1K views

Más de AHM Pervej Kabir

Business Analysis.pptx von
Business Analysis.pptxBusiness Analysis.pptx
Business Analysis.pptxAHM Pervej Kabir
25 views17 Folien
Knowledge share about scalable application architecture von
Knowledge share about scalable application architectureKnowledge share about scalable application architecture
Knowledge share about scalable application architectureAHM Pervej Kabir
589 views50 Folien
Software security engineering von
Software security engineeringSoftware security engineering
Software security engineeringAHM Pervej Kabir
585 views41 Folien
Software security engineering von
Software security engineeringSoftware security engineering
Software security engineeringAHM Pervej Kabir
916 views41 Folien
Shot note about project management von
Shot note about project managementShot note about project management
Shot note about project managementAHM Pervej Kabir
374 views21 Folien
CMMI von
CMMICMMI
CMMIAHM Pervej Kabir
12.6K views18 Folien

Último

Generic or specific? Making sensible software design decisions von
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsBert Jan Schrijver
6 views60 Folien
MariaDB stored procedures and why they should be improved von
MariaDB stored procedures and why they should be improvedMariaDB stored procedures and why they should be improved
MariaDB stored procedures and why they should be improvedFederico Razzoli
8 views32 Folien
WebAssembly von
WebAssemblyWebAssembly
WebAssemblyJens Siebert
35 views18 Folien
FIMA 2023 Neo4j & FS - Entity Resolution.pptx von
FIMA 2023 Neo4j & FS - Entity Resolution.pptxFIMA 2023 Neo4j & FS - Entity Resolution.pptx
FIMA 2023 Neo4j & FS - Entity Resolution.pptxNeo4j
6 views26 Folien
DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge... von
DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge...DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge...
DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge...Deltares
17 views12 Folien
Copilot Prompting Toolkit_All Resources.pdf von
Copilot Prompting Toolkit_All Resources.pdfCopilot Prompting Toolkit_All Resources.pdf
Copilot Prompting Toolkit_All Resources.pdfRiccardo Zamana
8 views4 Folien

Último(20)

Generic or specific? Making sensible software design decisions von Bert Jan Schrijver
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisions
MariaDB stored procedures and why they should be improved von Federico Razzoli
MariaDB stored procedures and why they should be improvedMariaDB stored procedures and why they should be improved
MariaDB stored procedures and why they should be improved
FIMA 2023 Neo4j & FS - Entity Resolution.pptx von Neo4j
FIMA 2023 Neo4j & FS - Entity Resolution.pptxFIMA 2023 Neo4j & FS - Entity Resolution.pptx
FIMA 2023 Neo4j & FS - Entity Resolution.pptx
Neo4j6 views
DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge... von Deltares
DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge...DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge...
DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge...
Deltares17 views
Copilot Prompting Toolkit_All Resources.pdf von Riccardo Zamana
Copilot Prompting Toolkit_All Resources.pdfCopilot Prompting Toolkit_All Resources.pdf
Copilot Prompting Toolkit_All Resources.pdf
Riccardo Zamana8 views
DSD-INT 2023 Exploring flash flood hazard reduction in arid regions using a h... von Deltares
DSD-INT 2023 Exploring flash flood hazard reduction in arid regions using a h...DSD-INT 2023 Exploring flash flood hazard reduction in arid regions using a h...
DSD-INT 2023 Exploring flash flood hazard reduction in arid regions using a h...
Deltares5 views
DSD-INT 2023 Salt intrusion Modelling of the Lauwersmeer, towards a measureme... von Deltares
DSD-INT 2023 Salt intrusion Modelling of the Lauwersmeer, towards a measureme...DSD-INT 2023 Salt intrusion Modelling of the Lauwersmeer, towards a measureme...
DSD-INT 2023 Salt intrusion Modelling of the Lauwersmeer, towards a measureme...
Deltares5 views
DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko... von Deltares
DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko...DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko...
DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko...
Deltares12 views
BushraDBR: An Automatic Approach to Retrieving Duplicate Bug Reports von Ra'Fat Al-Msie'deen
BushraDBR: An Automatic Approach to Retrieving Duplicate Bug ReportsBushraDBR: An Automatic Approach to Retrieving Duplicate Bug Reports
BushraDBR: An Automatic Approach to Retrieving Duplicate Bug Reports
DSD-INT 2023 Thermobaricity in 3D DCSM-FM - taking pressure into account in t... von Deltares
DSD-INT 2023 Thermobaricity in 3D DCSM-FM - taking pressure into account in t...DSD-INT 2023 Thermobaricity in 3D DCSM-FM - taking pressure into account in t...
DSD-INT 2023 Thermobaricity in 3D DCSM-FM - taking pressure into account in t...
Deltares9 views
Dapr Unleashed: Accelerating Microservice Development von Miroslav Janeski
Dapr Unleashed: Accelerating Microservice DevelopmentDapr Unleashed: Accelerating Microservice Development
Dapr Unleashed: Accelerating Microservice Development
DSD-INT 2023 Delft3D FM Suite 2024.01 1D2D - Beta testing programme - Geertsema von Deltares
DSD-INT 2023 Delft3D FM Suite 2024.01 1D2D - Beta testing programme - GeertsemaDSD-INT 2023 Delft3D FM Suite 2024.01 1D2D - Beta testing programme - Geertsema
DSD-INT 2023 Delft3D FM Suite 2024.01 1D2D - Beta testing programme - Geertsema
Deltares17 views
A first look at MariaDB 11.x features and ideas on how to use them von Federico Razzoli
A first look at MariaDB 11.x features and ideas on how to use themA first look at MariaDB 11.x features and ideas on how to use them
A first look at MariaDB 11.x features and ideas on how to use them
Federico Razzoli45 views
360 graden fabriek von info33492
360 graden fabriek360 graden fabriek
360 graden fabriek
info3349236 views

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

  • 1. AHM Pervej Kabir Analyst Programmer pervej_kabir@yahoo.com 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