170 likes | 263 Views
What’s Coming in 2008 for ADO.NET Data Access. Mike Taulty Developer & Platform Group Microsoft Ltd Mike.Taulty@microsoft.com http://www.mtaulty.com. Agenda. ADO.NET Entity Framework Currently at Beta 3 Graphical tooling for VS 2008 at 2 nd preview ADO.NET Data Services
E N D
What’s Coming in 2008 for ADO.NET Data Access Mike Taulty Developer & Platform Group Microsoft Ltd Mike.Taulty@microsoft.com http://www.mtaulty.com
Agenda • ADO.NET Entity Framework • Currently at Beta 3 • Graphical tooling for VS 2008 at 2nd preview • ADO.NET Data Services • Currently at December CTP • Both in the ASP.NET 3.5 Extensions Preview • EF releases 1st half of 2008
ADO.NET Entity Framework • Extends existing ADO.NET model • Adds additional capabilities • Abstraction from the underlying store schema • Abstraction from the underlying SQL dialect ADO .NET V2.0 .NET Provider Store
ADO.NET Entity Framework V3.0 V3.0 .NET Entity Provider (Entity SQL) Programming Model V3.0 ER Model (CSDL) Conceptual Model LINQ Reader Connection Command Entity Entity Object Relational Mapping relationship Mapping (MSL) V2.0 Store Model (SSDL) .NET Data Provider Store Reader Connection Adapter Command
ADO.NET Entity Framework V3.0 • “Schema independence” • “Store independence” • Higher level constructs • Relationships • Inheritance • Composite Entities ORM & LINQ .NET Provider (EntitySQL) Conceptual Model Mapping V2.0 .NET Provider Store
Data Services • Exposes data over a RESTful web service interface • Entity Framework data • LINQ to SQL data • Any IQueryable data • Server-side is built with Windows Communication Foundation • Returns Atom Publishing Protocol (APP) or JSON • Client-side libraries for .NET and AJAX
RESTful? • REpresentationalState Transfer • In a nutshell; • Server-side resources identified by a URI • Access is over HTTP, verb tied to action • GET to read the value of a resource • POST to create a new resource* • PUT to update an existing resource* • DELETE to delete a resource • Returned data is “plain” – XML or JSON
Data Services - Querying • General Pattern • EntitySet • Key • Navigation Property http://.../<EntitySet>[(<Key>)[/<NavigationProperty>[(<Key>)/...]]] http://.../Customers http://.../Customers(‘ALFKI’) http://.../Customers(‘ALFKI’)/Orders
Data Services - Querying • Query string parameters; • expand • orderby • skip • top • filter http://.../Customers(‘ALFKI’)?$expand=Orders http://.../Customers?$orderby=Country http://.../Customers?$orderby=Country&$skip=10 http://.../Customers?$orderby=Country&$top=10 http://.../Customers?$filter=City eq ‘London’
Data Services – Other Features • Service Operations • Expose more advanced functionality • Query Interceptors • Hook into requests for resources and run custom logic • Update Interceptors • Hook into modifications for resources and run custom logic
Resources http://www.asp.net (3.5 Extensions)
MSDN in the UK • Visit http://msdn.co.uk • Newsletter • Events • Screencasts • Blogs