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
ADO.NEXTAdvances in Data Access for 2008
Mike TaultyDeveloper & Platform GroupMicrosoft [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.5Current bits are packaged in ASP.NET 3.5 Extensions Preview
More about that package in the next session
Entity Framework
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
ADO.NET TodayApp Code
Customers
ADO.NET
ProvidersSQL Server
Oracle
...
DataReader
Customers
Oracle
Command
Execute
Provider Specific (PL/SQL)
“SELECT * FROM CUSTOMERS”
Customers
ADO.NET Entity Framework
Customers
Conceptual ModelUKCustom
er
UKPremiumCustomer
Map
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
.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
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
{ Entity Framework }
demo
LINQ to Entities – Lots of TopicsChange Tracking
Concurrency
Transactions
(i)POCO StoredProcs
Inheritance
Customising Code-Gen
Metadata N-Tier
Compiled Queries
Performance
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
Data Services
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 )
RESTful Web Services?
ResourcesRes 1Res 2Res 3Res 4
HTTP RequestURL
VERBPayload
HTTP ResponseStatus
GETPOSTPUT
DELETEXML JSON
Payload
XML JSON
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”?
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*)
{ Data Services }
demo
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
Resources
http://www.msdnroadshow.co.uk
© 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.