SlideShare a Scribd company logo
1 of 18
ASP.NET MVC4 framework
Ivan Marković
ivan.markovic@outlook.co
m
MVC
MVC
ASP.NET MVC4
Web application framework
Alternate for ASP.NET Web Forms

MVC=Model-View-Controller
Architectural pattern
Advantages of an MVC-Based Web
Application

Easier to manage complexity(input logic, business
logic, and UI logic)
Better support for test-driven development(TDD)
Better for large teams of developers
Model
Entity framework(EF)

Object relational mapper(ORM) framework for .NET
Eliminates the need for most of the data-access code that developers usually
need to write.
Entity Framework Development Approaches
View
Razor
View Engine for ASP.NET
Optimized arround HTML
Razor-example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Web Pages Demo</title>
</head>
<body>
<h1>Hello Web Pages</h1>
<p>The time is @DateTime.Now</p>
</body>
</html>
Advantages:
Compact, Expressive, and Fluid
Easy to Learn
Is not a new language
Works with any Text Editor
Controller
Controller
The ASP.NET MVC framework maps URLs to classes that are referred to as
controllers
The base class for all controllers is the ControllerBase class
The Controller class is responsible for the following
processing stages:
Locating the appropriate action method to call and validating that it can be
called.
Getting the values to use as the action method's arguments.
Handling all errors that might occur during the execution of the action method.
Action Methods
ASP.NET MVC applications is organized around controllers and action
methods.
The controller defines action methods. Controllers can include as many action
methods as needed.

/[Controller]/[ActionName]/[Parameters]
MVC3 vs MVC4
Difference

Enhancements to Default Project Templates
Mobile Project Template
jQuery Mobile, the View Switcher, and Browser Overriding
Example time

More Related Content

What's hot

Introduction to ASP.NET MVC
Introduction to ASP.NET MVCIntroduction to ASP.NET MVC
Introduction to ASP.NET MVCSunpawet Somsin
 
ASP.NET MVC 5 - EF 6 - VS2015
ASP.NET MVC 5 - EF 6 - VS2015ASP.NET MVC 5 - EF 6 - VS2015
ASP.NET MVC 5 - EF 6 - VS2015Hossein Zahed
 
Introduction to ASP.NET MVC
Introduction to ASP.NET MVCIntroduction to ASP.NET MVC
Introduction to ASP.NET MVCSirwan Afifi
 
Asp.net mvc presentation by Nitin Sawant
Asp.net mvc presentation by Nitin SawantAsp.net mvc presentation by Nitin Sawant
Asp.net mvc presentation by Nitin SawantNitin Sawant
 
Asp.net c# MVC-5 Training-Day-2 of Day-9
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
 
Silver Light By Nyros Developer
Silver Light By Nyros DeveloperSilver Light By Nyros Developer
Silver Light By Nyros DeveloperNyros Technologies
 
Which is better asp.net mvc vs asp.net
Which is better  asp.net mvc vs asp.netWhich is better  asp.net mvc vs asp.net
Which is better asp.net mvc vs asp.netConcetto Labs
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.netshan km
 
Asp.net mvc basic introduction
Asp.net mvc basic introductionAsp.net mvc basic introduction
Asp.net mvc basic introductionBhagath Gopinath
 
Generic Repository Pattern with ASP.NET MVC and EF
Generic Repository Pattern with ASP.NET MVC and EFGeneric Repository Pattern with ASP.NET MVC and EF
Generic Repository Pattern with ASP.NET MVC and EFMd. Mahedee Hasan
 
MVC From Beginner to Advance in Indian Style by - Indiandotnet
MVC From Beginner to Advance in Indian Style by - IndiandotnetMVC From Beginner to Advance in Indian Style by - Indiandotnet
MVC From Beginner to Advance in Indian Style by - IndiandotnetIndiandotnet
 

What's hot (20)

Introduction to ASP.NET MVC
Introduction to ASP.NET MVCIntroduction to ASP.NET MVC
Introduction to ASP.NET MVC
 
ASP.NET MVC 5 - EF 6 - VS2015
ASP.NET MVC 5 - EF 6 - VS2015ASP.NET MVC 5 - EF 6 - VS2015
ASP.NET MVC 5 - EF 6 - VS2015
 
MSDN - ASP.NET MVC
MSDN - ASP.NET MVCMSDN - ASP.NET MVC
MSDN - ASP.NET MVC
 
Introduction to ASP.NET MVC
Introduction to ASP.NET MVCIntroduction to ASP.NET MVC
Introduction to ASP.NET MVC
 
ASP.NET - Ivan Marković
ASP.NET - Ivan MarkovićASP.NET - Ivan Marković
ASP.NET - Ivan Marković
 
Asp.net mvc presentation by Nitin Sawant
Asp.net mvc presentation by Nitin SawantAsp.net mvc presentation by Nitin Sawant
Asp.net mvc presentation by Nitin Sawant
 
Asp.net c# MVC-5 Training-Day-2 of Day-9
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-9
 
Model Binding In ASP.NET MVC
Model Binding In ASP.NET MVCModel Binding In ASP.NET MVC
Model Binding In ASP.NET MVC
 
Silver Light By Nyros Developer
Silver Light By Nyros DeveloperSilver Light By Nyros Developer
Silver Light By Nyros Developer
 
ASP.NET MVC for Begineers
ASP.NET MVC for BegineersASP.NET MVC for Begineers
ASP.NET MVC for Begineers
 
Mvc framework
Mvc frameworkMvc framework
Mvc framework
 
Which is better asp.net mvc vs asp.net
Which is better  asp.net mvc vs asp.netWhich is better  asp.net mvc vs asp.net
Which is better asp.net mvc vs asp.net
 
Asp.net mvc
Asp.net mvcAsp.net mvc
Asp.net mvc
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.net
 
Asp.net mvc basic introduction
Asp.net mvc basic introductionAsp.net mvc basic introduction
Asp.net mvc basic introduction
 
Generic Repository Pattern with ASP.NET MVC and EF
Generic Repository Pattern with ASP.NET MVC and EFGeneric Repository Pattern with ASP.NET MVC and EF
Generic Repository Pattern with ASP.NET MVC and EF
 
ASP.NET Core
ASP.NET CoreASP.NET Core
ASP.NET Core
 
MVC - Introduction
MVC - IntroductionMVC - Introduction
MVC - Introduction
 
MVC From Beginner to Advance in Indian Style by - Indiandotnet
MVC From Beginner to Advance in Indian Style by - IndiandotnetMVC From Beginner to Advance in Indian Style by - Indiandotnet
MVC From Beginner to Advance in Indian Style by - Indiandotnet
 
ASP.NET MVC 3
ASP.NET MVC 3ASP.NET MVC 3
ASP.NET MVC 3
 

Viewers also liked

JobMobile_Summmit_2014_Alex_Douzet_Keynote
JobMobile_Summmit_2014_Alex_Douzet_KeynoteJobMobile_Summmit_2014_Alex_Douzet_Keynote
JobMobile_Summmit_2014_Alex_Douzet_KeynoteTheLadders
 
Monotheism. Tawheed. Tawhid. Tawhyd.
Monotheism. Tawheed. Tawhid. Tawhyd.Monotheism. Tawheed. Tawhid. Tawhyd.
Monotheism. Tawheed. Tawhid. Tawhyd.mohammed Hassan
 
TheLadders Top Recruiter List: Top 200 Corporate Recruiters for Q3 2014
TheLadders Top Recruiter List: Top 200 Corporate Recruiters for Q3 2014TheLadders Top Recruiter List: Top 200 Corporate Recruiters for Q3 2014
TheLadders Top Recruiter List: Top 200 Corporate Recruiters for Q3 2014TheLadders
 
TheLadders JobMobile Summit 2014: Betterment CEO & Founder Jon Stein
TheLadders JobMobile Summit 2014: Betterment CEO & Founder Jon SteinTheLadders JobMobile Summit 2014: Betterment CEO & Founder Jon Stein
TheLadders JobMobile Summit 2014: Betterment CEO & Founder Jon SteinTheLadders
 
Windows phone8
Windows phone8 Windows phone8
Windows phone8 imarkovic
 
JobMobile_Summmit_2014_Shankar_Mishra_Recruiting_Trends
JobMobile_Summmit_2014_Shankar_Mishra_Recruiting_TrendsJobMobile_Summmit_2014_Shankar_Mishra_Recruiting_Trends
JobMobile_Summmit_2014_Shankar_Mishra_Recruiting_TrendsTheLadders
 
TDD & Automation
TDD & AutomationTDD & Automation
TDD & AutomationElad Maimon
 
Cloud computing
Cloud computingCloud computing
Cloud computingimarkovic
 
Profile Picture Fails -- Avoid These Common Photo Mistakes
Profile Picture Fails -- Avoid These Common Photo MistakesProfile Picture Fails -- Avoid These Common Photo Mistakes
Profile Picture Fails -- Avoid These Common Photo MistakesTheLadders
 
Scrum in practice at klarna
Scrum in practice at klarnaScrum in practice at klarna
Scrum in practice at klarnaElad Maimon
 

Viewers also liked (11)

JobMobile_Summmit_2014_Alex_Douzet_Keynote
JobMobile_Summmit_2014_Alex_Douzet_KeynoteJobMobile_Summmit_2014_Alex_Douzet_Keynote
JobMobile_Summmit_2014_Alex_Douzet_Keynote
 
Monotheism. Tawheed. Tawhid. Tawhyd.
Monotheism. Tawheed. Tawhid. Tawhyd.Monotheism. Tawheed. Tawhid. Tawhyd.
Monotheism. Tawheed. Tawhid. Tawhyd.
 
TheLadders Top Recruiter List: Top 200 Corporate Recruiters for Q3 2014
TheLadders Top Recruiter List: Top 200 Corporate Recruiters for Q3 2014TheLadders Top Recruiter List: Top 200 Corporate Recruiters for Q3 2014
TheLadders Top Recruiter List: Top 200 Corporate Recruiters for Q3 2014
 
TheLadders JobMobile Summit 2014: Betterment CEO & Founder Jon Stein
TheLadders JobMobile Summit 2014: Betterment CEO & Founder Jon SteinTheLadders JobMobile Summit 2014: Betterment CEO & Founder Jon Stein
TheLadders JobMobile Summit 2014: Betterment CEO & Founder Jon Stein
 
Windows phone8
Windows phone8 Windows phone8
Windows phone8
 
JobMobile_Summmit_2014_Shankar_Mishra_Recruiting_Trends
JobMobile_Summmit_2014_Shankar_Mishra_Recruiting_TrendsJobMobile_Summmit_2014_Shankar_Mishra_Recruiting_Trends
JobMobile_Summmit_2014_Shankar_Mishra_Recruiting_Trends
 
TDD & Automation
TDD & AutomationTDD & Automation
TDD & Automation
 
Module 8
Module 8Module 8
Module 8
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Profile Picture Fails -- Avoid These Common Photo Mistakes
Profile Picture Fails -- Avoid These Common Photo MistakesProfile Picture Fails -- Avoid These Common Photo Mistakes
Profile Picture Fails -- Avoid These Common Photo Mistakes
 
Scrum in practice at klarna
Scrum in practice at klarnaScrum in practice at klarna
Scrum in practice at klarna
 

Similar to MVC4 framework

TDD with ASP.NET MVC 1.0
TDD with ASP.NET MVC 1.0TDD with ASP.NET MVC 1.0
TDD with ASP.NET MVC 1.0Shiju Varghese
 
Asp.Net Core MVC with Entity Framework
Asp.Net Core MVC with Entity FrameworkAsp.Net Core MVC with Entity Framework
Asp.Net Core MVC with Entity FrameworkShravan A
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET PresentationRasel Khan
 
Web development concepts using microsoft technologies
Web development concepts using microsoft technologiesWeb development concepts using microsoft technologies
Web development concepts using microsoft technologiesHosam Kamel
 
Asp.net Overview and Controllers
Asp.net Overview and ControllersAsp.net Overview and Controllers
Asp.net Overview and ControllersMustafa Saeed
 
Introduction to ASP.NET MVC 1.0
Introduction to ASP.NET MVC 1.0Introduction to ASP.NET MVC 1.0
Introduction to ASP.NET MVC 1.0Shiju Varghese
 
MVC Demystified: Essence of Ruby on Rails
MVC Demystified: Essence of Ruby on RailsMVC Demystified: Essence of Ruby on Rails
MVC Demystified: Essence of Ruby on Railscodeinmotion
 
Intro to .NET for Government Developers
Intro to .NET for Government DevelopersIntro to .NET for Government Developers
Intro to .NET for Government DevelopersFrank La Vigne
 
Technoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development servicesTechnoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development servicesAaron Jacobson
 
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
Top 10 -  ASP.NET Interview Questions And Answers 2023.pdfTop 10 -  ASP.NET Interview Questions And Answers 2023.pdf
Top 10 - ASP.NET Interview Questions And Answers 2023.pdfRuddarpratap
 
Asp.net With mvc handson
Asp.net With mvc handsonAsp.net With mvc handson
Asp.net With mvc handsonPrashant Kumar
 
Programming is Fun with ASP.NET MVC
Programming is Fun with ASP.NET MVCProgramming is Fun with ASP.NET MVC
Programming is Fun with ASP.NET MVCIan Carnaghan
 
Spring tutorials
Spring tutorialsSpring tutorials
Spring tutorialsTIB Academy
 
Asp.net mvc 5 course module 1 overview
Asp.net mvc 5 course   module 1 overviewAsp.net mvc 5 course   module 1 overview
Asp.net mvc 5 course module 1 overviewSergey Seletsky
 
MVC Architecture in ASP.Net By Nyros Developer
MVC Architecture in ASP.Net By Nyros DeveloperMVC Architecture in ASP.Net By Nyros Developer
MVC Architecture in ASP.Net By Nyros DeveloperNyros Technologies
 

Similar to MVC4 framework (20)

TDD with ASP.NET MVC 1.0
TDD with ASP.NET MVC 1.0TDD with ASP.NET MVC 1.0
TDD with ASP.NET MVC 1.0
 
Asp.Net Core MVC with Entity Framework
Asp.Net Core MVC with Entity FrameworkAsp.Net Core MVC with Entity Framework
Asp.Net Core MVC with Entity Framework
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
 
Web development concepts using microsoft technologies
Web development concepts using microsoft technologiesWeb development concepts using microsoft technologies
Web development concepts using microsoft technologies
 
Asp.net Overview and Controllers
Asp.net Overview and ControllersAsp.net Overview and Controllers
Asp.net Overview and Controllers
 
Asp.netmvc handson
Asp.netmvc handsonAsp.netmvc handson
Asp.netmvc handson
 
Introduction to ASP.NET MVC 1.0
Introduction to ASP.NET MVC 1.0Introduction to ASP.NET MVC 1.0
Introduction to ASP.NET MVC 1.0
 
MVC Demystified: Essence of Ruby on Rails
MVC Demystified: Essence of Ruby on RailsMVC Demystified: Essence of Ruby on Rails
MVC Demystified: Essence of Ruby on Rails
 
Intro to .NET for Government Developers
Intro to .NET for Government DevelopersIntro to .NET for Government Developers
Intro to .NET for Government Developers
 
Mvc
MvcMvc
Mvc
 
Technoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development servicesTechnoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development services
 
CG_CS25010_Lecture
CG_CS25010_LectureCG_CS25010_Lecture
CG_CS25010_Lecture
 
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
Top 10 -  ASP.NET Interview Questions And Answers 2023.pdfTop 10 -  ASP.NET Interview Questions And Answers 2023.pdf
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
 
Asp.net With mvc handson
Asp.net With mvc handsonAsp.net With mvc handson
Asp.net With mvc handson
 
Programming is Fun with ASP.NET MVC
Programming is Fun with ASP.NET MVCProgramming is Fun with ASP.NET MVC
Programming is Fun with ASP.NET MVC
 
Spring tutorials
Spring tutorialsSpring tutorials
Spring tutorials
 
Asp.net mvc 5 course module 1 overview
Asp.net mvc 5 course   module 1 overviewAsp.net mvc 5 course   module 1 overview
Asp.net mvc 5 course module 1 overview
 
MVC Architecture in ASP.Net By Nyros Developer
MVC Architecture in ASP.Net By Nyros DeveloperMVC Architecture in ASP.Net By Nyros Developer
MVC Architecture in ASP.Net By Nyros Developer
 
No brainer
No brainerNo brainer
No brainer
 
Learn .net and develop the web applications
Learn .net and develop the web applicationsLearn .net and develop the web applications
Learn .net and develop the web applications
 

Recently uploaded

"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 

Recently uploaded (20)

"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 

MVC4 framework

Editor's Notes

  1. ASP.NET MVC3- framework za izradu web aplikacija koji koristi MVC pattern, obrazac , po kojoj se izraduje aplikacijaMVC- dijeli aplikaciju na 3 dijela: model view i controllerModel predstavlja dio aplikacije koji primjenjuje logiku aplikacije odnosno model predstavlja i radi u doemi baze podataka.View- predstavlja komponente koje se prikazuju korisniku kao korisničko sučelje.Uglavnom se view kreira na temelju dohvaćenih podataka iz baze-Controler-komponenta koja obraduje sve naredbe dobivene preko korisnickog sucelja, radi sa Model dijelom aplikacije te odabire odnosno daje naredbu što će se prikazati korisniku na zaslonu.View samo prikazuje informacije,a kontroler obrađuje sve ono što korisnik odabere preko tog view-a
  2. -MVC pattern pomaze u kreiranju aplikacija kod koje ce odredeni dijelovi programa biti odjeljenji.-Mozemo reci da svaka web aplikacija ima nekakva 3 osnovna dijela, imamo Input logic,bussiness logic , and UI logic-MVC forma točno govori što će koji dio odrađivati.Tako da bussines logic pripada modelu, input logic controller dijelu, UI logic pripada viev dijelu-Ovakav način razmišljanja ,odnosno kreiranja aplikacije omogućuje nam da se nosimo sa složenošću aplikacije jer nam omogućuje da se fokusiramo na samo dio aplikacije.Npr : mozemo se skoncentrirati samo na view bez da nas zanima što se u pozadini događa npr s bazom podataka.-Također ovakav način je odličan za veće timove ljudi gdje se skupina ljudi bavi samo s pojedinim dijelom aplikacije-Omogućuje jednostavnije testiranje aplikacija nego što je slučaj kod Web Formi jer recimo kod Web formi pojedinacna klasa sluzi i da posalje nekakav prikaz na zaslon i da obradi nekakve korisnicke zahtjeve
  3. Entity framework je ORM framework za . NET koji služi za kreiranje baze podataka.ORM, Object relational mapping u progrmiranju je jedna vrsta tehnike koja olakškava rad s bazama podataka, odnosno značajno pojednostavljuje pristup bazi podataka, odnosno podacima koji se nalaze unutar same bazeNpr: Kod OO programiranja uglavnom govorimo o nekakvoj manipulaciji s objektima koji su ne skalarne veličine. Uzmimo za primjer telefonski imenik. Imamo naprimjer objekt Osoba koji bi imao nekakve svoje atribute koji bi ga opisivali, ime prezime broj telefona adrese. Naravno imao bi i pripadajuce metode koje bi vracale ili postavljale odredene vrijednosti. Unutar samog programa bio bi jedinstveni objekt. Međutim problem se pojavljuje kada trebamo takav tip spremiti u bazu podataka jer uglavnom se u bazu spremaju skalarne velicine s kojima se moze manipulirati kao što su stringovi i integeri. Programer tu mora transformirati taj objekt u grupe jednostavnijih varijabli kako bi se pohranilo u bazu podataka. EF upravo ovdje pokazuje glavnu prednost jer smanjuje količinu koda koja je potrebna kako bi se ta tranfosrmacija izvela.
  4. Kao što se vidi iz dijagrama postoje različiti pristupi i metode korištenja Entiti frameworkaImamo Database first: ukoliko već imate bazu podataka, Entity framework moze automatski generirati data model koji bi sadrzavao klase i svojstva povezane sa podacima unutar same baze podataka.Model first: Ukoliko nemate bazu podataka možemo koristit Entity framework dizajner unutar samog visual studija. Nakon što kreiramo model iz tog modela kreira se baza podataka.Treći pristup i pristup koji ćemo koristit u izradi naše MVC aplikacije unutar Software startup academya je Code First. Bez obzira da li imate ili nemte bazu podataka mozete jednostavni napisati kod ,odnoson klase sa svojim svojstvima i pomoću Entity frameworka jednostavno nastaje nova baza podataka. Upravo iz tog razloga mozda cete naici na naziv Code Only jer nema potrebe za dizajniranjem baze jednostavno napišete klasu sa svojstvima i entitiy framework će kereirati bazu
  5. Razor je sintaksa ASP.NET koju koristimo za kreiranje dinamičkih web stranica kombinirajuci C# i HTML.Razor je objavljen u 1.mjesecu 2011. godine tako da je relativno novi engineASP.NET je oduvijek podržavao koncept tih „view enđina” kao nekakvih modula koji se jednostavno primjene unutar same aplikacije i koji koriste razlicite sintaksne opcije. Razor je upravo jedan od tih enđina kod kojeg je temelj HTML ali podržava i C# i VB. Razor je jedan tradicionalni ASP.NET ajmo reći prezentacijski jezik jer nije programski no dosta lakši za shvatit..cshtml.vbhtml
  6. Jedan primjer koda za Razor gdje mozemo primjertiti imamo standardne tagove HTML medutim vidimo ovu liniju koda koja prikazuje trenutno vrijeme na serveru.
  7. Razor viev enđajn nije ništa novo, samo koristi vaša postojeća znanja o HTMLu i recimo C# ili VB kako bi donijeo nove mogućnosti u sam prikaz web stranice. Također kao i za html nije vam potreban nikakav poseban program, dovoljno je pokrenuti najobicniji text editor i u njega sve zapisati. Naravno budući da se koristi C# svakako bi bilo bolje koristit Visual Studio zbog intelisensea.
  8. Controller je ustvari clasa čiji naziv određuje URLGlavna klasa za sve controlere je ControllerBase klasa koja osigurava ispravno funkcioniranje cijelog MVC konepta.Controller clasa nasjedulje ControllerBase klasu
  9. Controller klasa zadužena je da na svkai korisnicki zahtjev pronade odgovorajacu metodu i pozove ju naravno uz to je potrebno i provjeriti da li je uopce dozvoljeno pozvati tu metoduPreuzima vrijednosti koje kasnije proslijeduje metodi i na temelju paramatera vraca odgovaraju viewUkoliko dolazi do pogreske Controller clasa odraduje sve moguce slucajeve
  10. Npr: korisnik unese URL u svoj browser , klikne na link ili pošalje nekakvu formu , u svakom od tih slučajeva šalje se zahtjev na server. URL sadrži informacije se koriste kako bi se pozvala ispravna Action Methoda.Recimo korisnik unese URL i posalje zahtjev a MVC aplikacija koristeci odredena pravila tocno zna koji controller odnosno koju metodu izvršiti.Na primjeru ćemo pokazati kako izgleda link odnosno URL, te vidjeti izgled tog linka te kako iz njega mozemo iscitat naziv kontrolera i metode koja ce se pozvati.
  11. Nekih vecih razlika izmedu MVC3 i MVC4 nema.Ovdje su navede nekakve 3 razlike mozda najvaznije za spomenuti u kontekstu ove akademije.Template koji se koristi za kreiranje ASP.NET MVC4 projekta je apdejtana odnsno sada to izgleda modernije, ustvari više sliči na današnje moderne web straniceDruga bitna razlika je templatea za kreiranje mobilnih web stranica, dakle ukoliko zelimo kreirati web stranicu iskljucivo za mobilne uredaje i tablete koristimo taj template. On je povezan s ovom 3 natuknicom, koristi naime jQuery mobile, open source library koji sluzi za razvijanje web aplikacija koje moraju biti optimizirane za touch UI