SlideShare a Scribd company logo
Page 1
Scaffolding
Page 2
What is Scaffolding?
ASP.net Scaffolding is a code
generation framework for ASP.net Web
applications.
Visual Studio 2013 includes pre-
installed code generators for MVC and
Web API projects.
Page 3
What is Scaffolding?
Scaffolding involves creating base templates for
code or markup of project items through an
automated method. The basic templates thus
generated can then be customized to meet your
exact requirements.
The Mvc Scaffolding available as a NuGet
package helps you scaffold ASP.NET MVC 3
specific project items such as Controllers and
Views.
The coding language for the resultant classes can
be C# or VB. Similarly, views can be Razor based
or ASPX based.
Page 4
What are the Advantages of
using Scaffolding ?
•Minimal or no code to create a
data-driven Web applications.
•Quick development time.
•Pages that are fully functional
and include display, insert, edit,
delete, sorting, and paging
functionalities(CRUD)
•Built-in data validation that is
based on the database schema.
•Filters that are created for each
foreign key or Boolean fields.
Page 5
Page 6
Step 2 :
Right click your Controllers folder and
Add New Scaffolded Item is as below.
Page 7
Step 3 :
From the Add Scaffold window, select the
MVC 5 Controller with views,using Entity
Framework scaffold template.
Page 8
Step4 :
The Add Controller window,you can
give the name of your Controller (e.g.
PetController)
select your model class (e.g. Pet) and
also you can create the Data context
class (e.g. DataContext) as in t. e next
slide
All other options are put as default.
After that click Add button.
Page 9
Page 10
Page 11
When you click the New data context..
button on Add Controller box above,it will pop
up the below New Data Context box.
From there you can give a name for your Data
context is as below.
e.g. DataContext
Page 12
Step 5 :
The solution tree shows the relevant classes and pages were
created for above example.
For example, the following image shows the MVC controller (i.e.
PetController) and Views (i.e. Inside the Pet folder) that were
created through scaffolding for a Model class named Pet.
Page 13
Let's run our sample application.
All the CRUD related auto
generated views are as below.
Page 14
Page 15
Let's run our sample application.
All the CRUD related auto
generated views are as below.
Page 16
Page 17
Page 18
Page 19
Page 20
Page 21
Page 22
From the Tools menu click NuGet Package Manager
and then click Package Manager Console.
In the Package Manager Console window enter the
following command:-
•Install-Package EntityFramework
•Install-Package MvcScaffolding
•Scaffold Controller Team
• Scaffold Controller Player
•Scaffold Controller Team –Force
• Scaffold Controller Player -Force
•Scaffold Controller Team -Repository -Force
Scaffold Controller Player -Repository -Force
Page 23
Page 24
Page 25
Page 26
Page 27

More Related Content

PPT
Scaffolding
jag89singh
 
PPTX
Scaffolding
GOKULACHANDRASAHOO
 
PPT
Introduction to Building Construction
Er.Karan Chauhan
 
DOCX
Components of a building
MD Shahnewaz Chayon
 
PPTX
Introduction to construction technology
momal
 
PDF
Demolishing of concrete structures
Tsegaye Arega
 
PPTX
Flooring and types of flooring
Nagadatt Sharma Nagilla
 
PPTX
Building Construction
Wilden How
 
Scaffolding
jag89singh
 
Scaffolding
GOKULACHANDRASAHOO
 
Introduction to Building Construction
Er.Karan Chauhan
 
Components of a building
MD Shahnewaz Chayon
 
Introduction to construction technology
momal
 
Demolishing of concrete structures
Tsegaye Arega
 
Flooring and types of flooring
Nagadatt Sharma Nagilla
 
Building Construction
Wilden How
 

What's hot (20)

PPTX
Plastering
Aglaia Connect
 
PPTX
Building Components.pptx
FineArt9
 
PPT
blockwork
catherinelindsay
 
PPTX
Demolition methods and its sequence
Ranjith Kumar
 
PPTX
Scaffolding
purvi golecha
 
PDF
Project Execution Plan for High Rise Building
David H Moloney
 
PPTX
Ila's ppt on demolition
ila vamsi krishna
 
PPTX
Staircase
SVKM'S IOT DHULE
 
PPT
Types of Stairs & Staircase in Building Construction
Er.Karan Chauhan
 
PPT
walls Construction.ppt
jiteshdhule1
 
PPTX
Deterioration of Concrete
Ramanuj Jaldhari
 
PPTX
Materials and Techniques For Repair
Piyush Purshottam Lalwani
 
PPTX
causes & prevention of cracks
Bhavek Sharma
 
PPT
Floor and slabs
Pranay Kumar Tode
 
PPTX
Building components
sanatyadav1992
 
PPT
Superstructure construction
mohdasrimohdhasim
 
PPTX
Construction using Precast technology
Shubham Arora
 
PPTX
Scaffolding
ANNIE THOMAS
 
PPTX
Scaffolding and formwork ppt
gayathrysatheesan1
 
PDF
Method aluminum door & window
Minh Bui Si
 
Plastering
Aglaia Connect
 
Building Components.pptx
FineArt9
 
blockwork
catherinelindsay
 
Demolition methods and its sequence
Ranjith Kumar
 
Scaffolding
purvi golecha
 
Project Execution Plan for High Rise Building
David H Moloney
 
Ila's ppt on demolition
ila vamsi krishna
 
Staircase
SVKM'S IOT DHULE
 
Types of Stairs & Staircase in Building Construction
Er.Karan Chauhan
 
walls Construction.ppt
jiteshdhule1
 
Deterioration of Concrete
Ramanuj Jaldhari
 
Materials and Techniques For Repair
Piyush Purshottam Lalwani
 
causes & prevention of cracks
Bhavek Sharma
 
Floor and slabs
Pranay Kumar Tode
 
Building components
sanatyadav1992
 
Superstructure construction
mohdasrimohdhasim
 
Construction using Precast technology
Shubham Arora
 
Scaffolding
ANNIE THOMAS
 
Scaffolding and formwork ppt
gayathrysatheesan1
 
Method aluminum door & window
Minh Bui Si
 
Ad

Viewers also liked (20)

PDF
Q4 2014 security report botnet profiling technique excerpts document
Akamai
 
PPT
7.3
rakul-oi
 
PDF
Ap human balkan ghosts final
sleidich
 
PPT
8.1 копия
rakul-oi
 
PDF
Tokyo
Yoshiteru Tani
 
PPT
15.1
rakul-oi
 
PPT
7.1
rakul-oi
 
PPT
5.1
rakul-oi
 
PPT
14.2
rakul-oi
 
DOC
CV m g Harinkhede
Manoj Harinkhede
 
PDF
MTC IATSE
Jamie Williams
 
PPT
2.3
rakul-oi
 
PDF
Jowel Bodden Professional Persona Project
jowelbodden
 
PPT
8.1
rakul-oi
 
DOCX
Marketing Branding Leadership Management Data
Jeff Rosenplot
 
DOC
Office Admin.-Cust. Service-Front Desk Resume
Lisa Bartolotta
 
PPTX
Mesheuressup
Catalyse IT
 
PDF
Nightline: Late Evening News - ABC News
coldstudent3879
 
PDF
Mohamed aly
Mohamed Aly
 
PDF
JeffRosenplotResume
Jeff Rosenplot
 
Q4 2014 security report botnet profiling technique excerpts document
Akamai
 
Ap human balkan ghosts final
sleidich
 
8.1 копия
rakul-oi
 
15.1
rakul-oi
 
14.2
rakul-oi
 
CV m g Harinkhede
Manoj Harinkhede
 
MTC IATSE
Jamie Williams
 
Jowel Bodden Professional Persona Project
jowelbodden
 
Marketing Branding Leadership Management Data
Jeff Rosenplot
 
Office Admin.-Cust. Service-Front Desk Resume
Lisa Bartolotta
 
Mesheuressup
Catalyse IT
 
Nightline: Late Evening News - ABC News
coldstudent3879
 
Mohamed aly
Mohamed Aly
 
JeffRosenplotResume
Jeff Rosenplot
 
Ad

Similar to Scaffolding (20)

PPTX
Entity Framework Database and Code First
James Johnson
 
PPTX
La sql
James Johnson
 
PDF
ChircuVictor StefircaMadalin rad_aspmvc3_wcf_vs2010
vchircu
 
DOCX
A report on mvc using the information
Toushik Paul
 
DOCX
ASP.NET MVC3 RAD
Mădălin Ștefîrcă
 
PPTX
ASP.NET MVC 5 - EF 6 - VS2015
Hossein Zahed
 
PDF
ASP.NET Core in Action (2018).pdf
Emma Burke
 
PPTX
Real World MVC
James Johnson
 
PDF
Getting started with entity framework 6 code first using mvc 5
Ehtsham Khan
 
PPT
Develop a Quick and Dirty Web interface to your database: for the DBA and oth...
Gabriel Villa
 
PPTX
Build software like a bag of marbles, not a castle of LEGO®
Hannes Lowette
 
PDF
Getting started with the entity framework 4.1 using asp.net mvc
Steve Xu
 
PDF
A Brief Note On Asp.Net And Cloud Computing Essay
Lanate Drummond
 
DOCX
Learning MVC Part 3 Creating MVC Application with EntityFramework
Akhil Mittal
 
PDF
Aspnetmvc 1
Fajar Baskoro
 
PDF
Asp 1a-aspnetmvc
Fajar Baskoro
 
PPTX
Asp.net With mvc handson
Prashant Kumar
 
PDF
Learning Aspnet Core Mvc Programming Mugilan T S Ragupathi
nybiadegeye
 
PPTX
Intro to .NET for Government Developers
Frank La Vigne
 
PPTX
LavaCon 2011: Double Trouble! Adding Developer Docs to Your Deliverables
Mary Connor
 
Entity Framework Database and Code First
James Johnson
 
ChircuVictor StefircaMadalin rad_aspmvc3_wcf_vs2010
vchircu
 
A report on mvc using the information
Toushik Paul
 
ASP.NET MVC3 RAD
Mădălin Ștefîrcă
 
ASP.NET MVC 5 - EF 6 - VS2015
Hossein Zahed
 
ASP.NET Core in Action (2018).pdf
Emma Burke
 
Real World MVC
James Johnson
 
Getting started with entity framework 6 code first using mvc 5
Ehtsham Khan
 
Develop a Quick and Dirty Web interface to your database: for the DBA and oth...
Gabriel Villa
 
Build software like a bag of marbles, not a castle of LEGO®
Hannes Lowette
 
Getting started with the entity framework 4.1 using asp.net mvc
Steve Xu
 
A Brief Note On Asp.Net And Cloud Computing Essay
Lanate Drummond
 
Learning MVC Part 3 Creating MVC Application with EntityFramework
Akhil Mittal
 
Aspnetmvc 1
Fajar Baskoro
 
Asp 1a-aspnetmvc
Fajar Baskoro
 
Asp.net With mvc handson
Prashant Kumar
 
Learning Aspnet Core Mvc Programming Mugilan T S Ragupathi
nybiadegeye
 
Intro to .NET for Government Developers
Frank La Vigne
 
LavaCon 2011: Double Trouble! Adding Developer Docs to Your Deliverables
Mary Connor
 

Recently uploaded (20)

PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
PPTX
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
PPTX
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PDF
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
 
DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PPTX
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
PDF
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
PDF
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
DOCX
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
PPTX
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
PPTX
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
DOCX
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
PDF
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
PDF
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
PPTX
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 

Scaffolding

  • 2. Page 2 What is Scaffolding? ASP.net Scaffolding is a code generation framework for ASP.net Web applications. Visual Studio 2013 includes pre- installed code generators for MVC and Web API projects.
  • 3. Page 3 What is Scaffolding? Scaffolding involves creating base templates for code or markup of project items through an automated method. The basic templates thus generated can then be customized to meet your exact requirements. The Mvc Scaffolding available as a NuGet package helps you scaffold ASP.NET MVC 3 specific project items such as Controllers and Views. The coding language for the resultant classes can be C# or VB. Similarly, views can be Razor based or ASPX based.
  • 4. Page 4 What are the Advantages of using Scaffolding ? •Minimal or no code to create a data-driven Web applications. •Quick development time. •Pages that are fully functional and include display, insert, edit, delete, sorting, and paging functionalities(CRUD) •Built-in data validation that is based on the database schema. •Filters that are created for each foreign key or Boolean fields.
  • 6. Page 6 Step 2 : Right click your Controllers folder and Add New Scaffolded Item is as below.
  • 7. Page 7 Step 3 : From the Add Scaffold window, select the MVC 5 Controller with views,using Entity Framework scaffold template.
  • 8. Page 8 Step4 : The Add Controller window,you can give the name of your Controller (e.g. PetController) select your model class (e.g. Pet) and also you can create the Data context class (e.g. DataContext) as in t. e next slide All other options are put as default. After that click Add button.
  • 11. Page 11 When you click the New data context.. button on Add Controller box above,it will pop up the below New Data Context box. From there you can give a name for your Data context is as below. e.g. DataContext
  • 12. Page 12 Step 5 : The solution tree shows the relevant classes and pages were created for above example. For example, the following image shows the MVC controller (i.e. PetController) and Views (i.e. Inside the Pet folder) that were created through scaffolding for a Model class named Pet.
  • 13. Page 13 Let's run our sample application. All the CRUD related auto generated views are as below.
  • 15. Page 15 Let's run our sample application. All the CRUD related auto generated views are as below.
  • 22. Page 22 From the Tools menu click NuGet Package Manager and then click Package Manager Console. In the Package Manager Console window enter the following command:- •Install-Package EntityFramework •Install-Package MvcScaffolding •Scaffold Controller Team • Scaffold Controller Player •Scaffold Controller Team –Force • Scaffold Controller Player -Force •Scaffold Controller Team -Repository -Force Scaffold Controller Player -Repository -Force