accesing sql server from asp.net 4.0
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.comTRANSCRIPT
![Page 1: Accesing Sql Server From Asp.Net 4.0](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/1.jpg)
Ing. Eduardo Castro, PhDGrupo Asesor en Informá[email protected]
![Page 2: Accesing Sql Server From Asp.Net 4.0](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/2.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/3.jpg)
ASP.NET supports several very different types of web applications
![Page 4: Accesing Sql Server From Asp.Net 4.0](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/4.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/5.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/6.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/7.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/8.jpg)
Data Model
Metadata Validation
Model-Aware Data Controls #2
#1
![Page 9: Accesing Sql Server From Asp.Net 4.0](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/9.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/10.jpg)
Data Model
Metadata Validation
Model-Aware Data Controls
Dynamic Controls
Field Templates
Page Template
![Page 11: Accesing Sql Server From Asp.Net 4.0](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/11.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/12.jpg)
Data Model
Data Source
Data Control
Data Model
Business Layer
Data Source
Data Control
![Page 13: Accesing Sql Server From Asp.Net 4.0](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/13.jpg)
![Page 14: Accesing Sql Server From Asp.Net 4.0](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/14.jpg)
![Page 15: Accesing Sql Server From Asp.Net 4.0](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/15.jpg)
![Page 16: Accesing Sql Server From Asp.Net 4.0](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/16.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/17.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/18.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/19.jpg)
![Page 20: Accesing Sql Server From Asp.Net 4.0](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/20.jpg)
![Page 21: Accesing Sql Server From Asp.Net 4.0](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/21.jpg)
![Page 22: Accesing Sql Server From Asp.Net 4.0](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/22.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022051411/545c4ab6af7959b9098b4768/html5/thumbnails/23.jpg)