9. Why? 8 Provides an API that allows data to be created and consumed over HTTP using RESTful service. Supports all database operations using URI. Can expose an entity model via an URI. Is RESTful service to support CRUD operations on database. Could be consumed by any type of client like Windows, Silverlight, Web , AJAX and console.
10. How? 9 Data is sent over HTTP in both directions; Defines a hosting interface IDataServiceHost that abstracts its implementation from a specific host (WCF, ASP.NET, IIS); Server operations: - static layer that implements URL translation - data source being surfaced to the data service.
11. Concepts 10 REST: - focuses on key components that enable easy integration and interaction with other systems; - approaches the need for interoperability and communication between systems through separation of layers; - Yahoo, Facebook, Flickr, Amazon, Google, ebay, digg;
12. 11 The ADO.NET Data Services framework provides patterns and libraries that enable the creation and consumption of data driven services for the web; Expose Data Source to Data Service: - Entity Framework - LINQ to SQL - Surfacing custom data sources using CLR classes - Creating a custom IQueryable<T> provider to surface a custom data source Offline-Enabled Data Services (Astoria Offline)
13. System Requirements 12 Microsoft .NET Framework 3.5 SP1 Visual Studio 2008 SP1 ADO.NET Data-access providers (Microsoft SQL Server 2005)
14. ADO.NET Entity Framework 13 Introduction ADO.NET Providers Entity Data Model (EDM) Mapping Database Schema vs Conceptual Schema Using Object Model http://msdn.microsoft.com/en-us/library/aa697427(VS.80).aspx
15. Introduction to Entity Framework 14 Is a set of data access APIs for the Microsoft .NET Framework; Version 1 was included with .NET Framework 3.5 SP1 and Visual Studio 2008 SP1; version 4.0 is available in Beta form as part of Visual Studio 2010; Abstracts the relational(logical) schema of the data that is stored in a database and presents its conceptual schema to the application;
16. 15 ADO.NET Providers: Connector/Net(MySQL), DB2.NET, dotConnect, Oracle Data Provider for .NET, DataDirect Connect for ADO.NET, Npgsql; EDM: - specifies the conceptual model of the data via the Entity-Relationship data model; - the EDM schema is expressed in the Schema Definition Language (XML format); Mapping: a 1:1 (one to one) mapping is generated between the database schema and the conceptual schema;