21
ADO.NEXT Advances in Data Access for 2008 Mike Taulty Developer & Platform Group Microsoft Ltd [email protected] http://miketaulty.com

ADO.NE X T Advances in Data Access for 2008

  • Upload
    yuma

  • View
    32

  • Download
    0

Embed Size (px)

DESCRIPTION

ADO.NE X T Advances in Data Access for 2008. Mike Taulty Developer & Platform Group Microsoft Ltd [email protected] http://miketaulty.com. What’s Coming in ADO.NET?. Slated for Summer, 2008 as part of an update to VS 2008 and Framework V3.5 - PowerPoint PPT Presentation

Citation preview

Page 1: ADO.NE X T Advances in Data Access for 2008

ADO.NEXTAdvances in Data Access for 2008

Mike TaultyDeveloper & Platform GroupMicrosoft [email protected] http://miketaulty.com

Page 2: ADO.NE X T Advances in Data Access for 2008

What’s Coming in ADO.NET?

Slated for Summer, 2008 as part of an update to VS 2008 and Framework V3.5Current bits are packaged in ASP.NET 3.5 Extensions Preview

More about that package in the next session

Page 3: ADO.NE X T Advances in Data Access for 2008

Entity Framework

Page 4: ADO.NE X T Advances in Data Access for 2008

Entity Framework – Key FactsExtends the ADO.NET Provider Model

Pluggable to support any databaseFunctionality

Abstracts a model from your store schemaADO.NET API or LINQ-enabled ORM

StatusCurrently at Beta 3

Page 5: ADO.NE X T Advances in Data Access for 2008

ADO.NET TodayApp Code

Customers

ADO.NET

ProvidersSQL Server

Oracle

...

DataReader

Customers

Oracle

Command

Execute

Provider Specific (PL/SQL)

“SELECT * FROM CUSTOMERS”

Customers

Page 6: ADO.NE X T Advances in Data Access for 2008

ADO.NET Entity Framework

Customers

Conceptual ModelUKCustom

er

UKPremiumCustomer

Map

Page 7: ADO.NE X T Advances in Data Access for 2008

ADO.NET Entity FrameworkApp Code

Customers

ADO.NET

Providers*SQL Server

Oracle

...

Oracle

EntityProvider

DataReaderUKCustom

er

Command

Execute

Conceptual ModelUKCustom

er

UKPremiumCustomer

Map

Provider Agnostic (ESQL)

“SELECT * FROM UKCUSTOMER”UKCustom

er

Page 8: ADO.NE X T Advances in Data Access for 2008

.NET Entity Provider (Entity SQL)

Command

ConnectionReader

EF

ADO.NET Entity Framework

Store

.NET Data Provider

V2.0

Command

ConnectionReader

Adapter

EF

Conceptual Model

Entity Entityrelationship

Store Model(SSDL)

Entity Data Model(CSDL)

Mapping (MSL)

EFProgramming Model

Object Relational Mapping

LINQ

Page 9: ADO.NE X T Advances in Data Access for 2008

LINQ to SQL? LINQ to Entities?

LINQ to SQL LINQ to Entities

Database Support

SQL Server Many

Object Relational Mapping Capabilities

Simple Complex

Requires Attributed .NET Code

No Yes

Status Released Beta

Page 10: ADO.NE X T Advances in Data Access for 2008

{ Entity Framework }

demo

Page 11: ADO.NE X T Advances in Data Access for 2008

LINQ to Entities – Lots of TopicsChange Tracking

Concurrency

Transactions

(i)POCO StoredProcs

Inheritance

Customising Code-Gen

Metadata N-Tier

Compiled Queries

Performance

Page 12: ADO.NE X T Advances in Data Access for 2008

EF Providers in ProgressVendor DB Support

Microsoft SQL ServerCore Lab Oracle, MySQL,

PostgreSQL, SQLiteIBM DB2, Informix Dynamic

ServerMySQL AB MySQLNpgsql PostgreSQLOpenLink Many via OpenLink

ODBC or JDBCPhoenix SQLiteDataDirect Oracle, Sybase, SQL

Server, DB2Firebird Firebird

Page 13: ADO.NE X T Advances in Data Access for 2008

Data Services

Page 14: ADO.NE X T Advances in Data Access for 2008

Data Services – Key FactsExtends Windows Communication Foundation V3.5Functionality

CRUD access to data over RESTful web servicesBuilt-in URI-based query syntaxClient-side libraries for .NET and AJAX clients

StatusCurrently in CTP ( latest December )

Page 15: ADO.NE X T Advances in Data Access for 2008

RESTful Web Services?

ResourcesRes 1Res 2Res 3Res 4

HTTP RequestURL

VERBPayload

HTTP ResponseStatus

GETPOSTPUT

DELETEXML JSON

Payload

XML JSON

Page 16: ADO.NE X T Advances in Data Access for 2008

RESTful?REpresentational State Transfer

Server-side resources identified by a URIAccess is over HTTP, verb tied to action

GET to read the value of a resourcePOST to create a new resourcePUT to update an existing resourceDELETE to delete a resource

Returned data is “plain” – XML or JSONIs this “the death of SOAP”?

Page 17: ADO.NE X T Advances in Data Access for 2008

data? what kind of data?Provide a type with public properties which are;

IQueryable<T>, IEnumerable<T>Also get write access if your type implements;

IUpdatableWorks well with generated code from;

ADO.NET Entity Framework (ObjectContext)LINQ to SQL (DataContext*)

Page 18: ADO.NE X T Advances in Data Access for 2008

{ Data Services }

demo

Page 19: ADO.NE X T Advances in Data Access for 2008

What’s Coming in ADO.NET?

Slated for Summer, 2008 as part of an update to VS 2008 and Framework V3.5Current bits ASP.NET 3.5 Extensions Preview

Page 20: ADO.NE X T Advances in Data Access for 2008

Resources

http://www.msdnroadshow.co.uk

Page 21: ADO.NE X T Advances in Data Access for 2008

© 2008 Microsoft Ltd. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.

The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the

date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.