accesing sql server from asp.net 4.0

23
Ing. Eduardo Castro, PhD Grupo Asesor en Informática [email protected]

Upload: eduardo-castro

Post on 07-Nov-2014

1.111 views

Category:

Technology


0 download

DESCRIPTION

Esta es la presentación utilizada en el webcast sobre acceso a datos en SQL Server desde ASP.NEt 4.0, vemos mejoras tales como Dynamic Data y Domain Data Source. Saludos, Eduardo Castro Martinez http://comunidadwindows.org http://ecastrom.blogspot.com

TRANSCRIPT

Page 1: Accesing Sql Server From Asp.Net 4.0

Ing. Eduardo Castro, PhDGrupo Asesor en Informá[email protected]

Page 2: Accesing Sql Server From Asp.Net 4.0

Session Objective(s):

Understand ASP.NET 4.0 data advancementsRAD data continues to be advanced

Model driven development across multiple presentation layers

Business logic layer is the future

Understand Dynamic Data advancements

Page 3: Accesing Sql Server From Asp.Net 4.0

ASP.NET supports several very different types of web applications

Page 4: Accesing Sql Server From Asp.Net 4.0

With ASP.NET 4.0, you are in control:

Control Rendering

Control IDs

View State

Website URLs

XHTML and Accessibility

Page 5: Accesing Sql Server From Asp.Net 4.0

Instead of:

http://YourSite.com/Search.aspx?query=cats

You can use:

http://YourSite.com/Search/cats

Page 6: Accesing Sql Server From Asp.Net 4.0

1.0: No data sources

2.0: ObjectDataSource

3.5: LinqDataSource

3.5 SP1: EntityDataSource

Future: DomainDataSource

Page 7: Accesing Sql Server From Asp.Net 4.0

Data Controls Data Sources

Control Arsenal

GridView DetailsView

FormView ListView

DataPager Repeater

Object LINQ

Entity SQL

Access XML

Page 8: Accesing Sql Server From Asp.Net 4.0

Data Model

Metadata Validation

Model-Aware Data Controls #2

#1

Page 9: Accesing Sql Server From Asp.Net 4.0

Model-Aware Data Control

Bound to

Uses

Field Templates(Integer, String, Date,

etc)

* Easy extensibility

point

Page 10: Accesing Sql Server From Asp.Net 4.0

Data Model

Metadata Validation

Model-Aware Data Controls

Dynamic Controls

Field Templates

Page Template

Page 11: Accesing Sql Server From Asp.Net 4.0

URL RoutingModule

Request

ASPX Page

(Http Handler)

Respons

e

Route Table

DynamicRoute

Ensures:

1) Table

2) Action

Dynamic RouteHandler

Checks for:

1) Custom Page

2) Scaffold Page

Page 12: Accesing Sql Server From Asp.Net 4.0

Data Model

Data Source

Data Control

Data Model

Business Layer

Data Source

Data Control

Page 13: Accesing Sql Server From Asp.Net 4.0
Page 14: Accesing Sql Server From Asp.Net 4.0
Page 15: Accesing Sql Server From Asp.Net 4.0
Page 16: Accesing Sql Server From Asp.Net 4.0

Works with EntityDataSource and LinqDataSource

Enables you to filter database results

Accepts different types of expressions:

Search

Range

Property

Custom

Page 17: Accesing Sql Server From Asp.Net 4.0

Powerful way to build data-driven sites

Get started quickly using scaffolding

Much more than scaffolding!

Fully customizable

Validation and business rules on model

Powerful filtering

Flexible URL routing

Page 18: Accesing Sql Server From Asp.Net 4.0

Use Dynamic Data with DomainDataSource

Best of both world

All the power of Dynamic Data

All the control of DomainService

Page 19: Accesing Sql Server From Asp.Net 4.0
Page 20: Accesing Sql Server From Asp.Net 4.0
Page 21: Accesing Sql Server From Asp.Net 4.0
Page 22: Accesing Sql Server From Asp.Net 4.0

http://comunidadwindows.orghttp://ecastrom.blogspot.comhttp://www.asp.net/dynamicdata/http://forums.asp.net/1145.aspx

Ing. Eduardo Castro, PhDGrupo Asesor en Informá[email protected]

Page 23: Accesing Sql Server From Asp.Net 4.0