Upload
robert-maclean
View
2.668
Download
3
Embed Size (px)
DESCRIPTION
My presentation on ASP.NET Dynamic Data which is a new feature in the .NET Framework 3.5 SP 1 and allows for data driven websites to easily be constructed.
Citation preview
TR: ASP.NET DYNAMIC DATAWork smarter, not harder
ASP.NET++
BB
&D
Te
chnolo
gy R
eadin
ess
and
Aw
are
ness
Init
iati
ve
The problem
• Adds/Updates a number of phone number fields to the DB
DBA
BB
&D
Te
chnolo
gy R
eadin
ess
and
Aw
are
ness
Init
iati
ve
Traditional Solution
DBA Update/Add
s Fields
Developer creates/update
s custom control
Developer links custom control to DB
Murphy
BB
&D
Te
chnolo
gy R
eadin
ess
and
Aw
are
ness
Init
iati
ve
ASP.NET Dynamic Data Solution
Scaffolding
DBA Creates/Updat
es FieldsMurphy
BB
&D
Te
chnolo
gy R
eadin
ess
and
Aw
are
ness
Init
iati
ve
What is Scaffolding?
Database• Metadat
a from DB
ASP.NET Web Forms• Standard
Pages• Custom
Controls
Runtime understandi
ng of the above
Web Pages
BB
&D
Te
chnolo
gy R
eadin
ess
and
Aw
are
ness
Init
iati
ve
How does ASP.NET Dynamic Data do it?
ASP.NET•Normal web pages•Normal controls
Data Store•SQL DB•CLR Objects
Additional .Net Code•ASP.NET DynamicData
LINQ/EF•Understands and gets meta data
Web Pages
SCAFFOLDING DEMO
BB
&D
Te
chnolo
gy R
eadin
ess
and
Aw
are
ness
Init
iati
ve
A note on security
Security is not inferred from the DB User doesn’t have enough permissions
errors will occur
Can use custom pages and only provide list views (effectively making them read only)
Remember: It’s just ASP.NET• Can code custom solution• Can code support for inferring from
the DB• Can use ASP.NET credential/role
system