8
TR: ASP.NET DYNAMIC DATA Work smarter, not harder ASP.NET++

ASP.NET Dynamic Data

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

Page 1: ASP.NET Dynamic Data

TR: ASP.NET DYNAMIC DATAWork smarter, not harder

ASP.NET++

Page 2: ASP.NET Dynamic Data

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

Page 3: ASP.NET Dynamic Data

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

Page 4: ASP.NET Dynamic Data

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

Page 5: ASP.NET Dynamic Data

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

Page 6: ASP.NET Dynamic Data

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

Page 7: ASP.NET Dynamic Data

SCAFFOLDING DEMO

Page 8: ASP.NET Dynamic Data

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