Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 73 pages
Summary

Samenvatting MVC framework development

Document preview thumbnail
Preview 4 out of 73 pages

In dit samenvatting bouwen we websites volgens het MVC-principe. MVC Framework Development is het theoretisch luik. MVC staat daarnaast voor Model-View-Controller. Dit wordt gedaan in de programmeertaal C#. Binnen dit document krijg je uitleg over verschillende thema's zoals MVC zelf, hoe je werkt met formulieren, EF, UnitOfWork, API en Identity.

Content preview

MVC framework
development

Geschiedenis
 ASP
o Gelanceerd in 1996
o ‘klassieke’ ASP
o Dynamische webpagina’s
 .asp
o VBScript
 Enkel code tussen HTML


 ASP.NET webforms
o Gelanceerd in 2002
o Introductie .Net Framework
o Abstractie boven ‘web development’
o Webpagina’s maken was gelijkaardig aan Windows applicaties maken
 Drag&Drop van controls
o Code behind die programmacode bevat
 VB.Net of C#
o .aspx


 ASP.NET MVC
o Gelanceerd in 2009
o Problemen van webforms wegwerken
 Voorzien van volledige controle over HTML/CSS met clean code
 Model-View-Controller
 Beter testbaar
 Open source maken wat leidt tot veel updates en extensies
 ASP.NET core

, o Gelanceerd in 2016
o Cross platform
 Applicaties draaien op zowel Windows, Linux als MacOS
o Open source
o Geoptimaliseerd voor cloud
o Hosting met ISS of self-hosting mogelijk
o Niet afhankelijk van .Net Framework
o Gebruik van Dependency Injection




Project aanmaken
STAP
1




STAP
2




2

,STAP
3




Inhoud project
 wwwroot
o Afbeeldingen
o CSS
o Javascript
 Controllers
o C# Klassen voor afhandeling requests
 Views
o Pagina’s die omgevormd worden naar HTML
 Models
o C# Klassen voor structuur van objecten
 Program.cs
o Startpunt van applicatie + settings




Uitvoeren project
 Via IIS Express (of eigen project) met debugging
o F5 of play
 Zonder debuggen
o CTRL + F5
o Code aanpasbaar zonder complete rebuild




3

, MVC Patroon
 Model-View-Controller


 Design pattern
o Best practices die structuur aanpakken binnen project


 Separation of concern
o Opsplitsen van code
o Elk onderdeel bevat enkel code waarvoor deze verantwoordelijk is


 Voordelen met MVC
o Beter testbaar
o Beter onderhoudbaar
o Eenvoudiger te updaten


 Onderdelen
o Controller
 Handelt aanvragen van de gebruiker af adhv Routing en Action
Methods
 Haalt nodige data op, toont juiste pagina inhoud
o View
 Toont een User Interface (UI) van de applicatie
 Bestaat uit Razor code gecombineerd met HTML, CSS, JS
o Model
 Bevat data die doorheen de applicatie behandeld word
 Gebeurt aan de hand van C# klassen per onderwerp
o ViewModel
 Bevat data voor specifieke View
 Gebeurt aan de hand van C# klassen per View




4

Document information

Study
Uploaded on
October 25, 2023
Number of pages
73
Written in
2023/2024
Type
Summary
$8.93

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
anouckcelis
2.5
(2)
Sold
16
Followers
6
Items
22
Last sold
8 months ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions