Exposing data as a service using WCF Data Services
205
Why do we need REST?
205
Resources in REST-based architecture
207
The REST architectural constraints
208
The client-server model
208
Stateless
208
Cacheable
209
Code on demand
209
The uniform interface
209
Resource management
209
REST attributes
209
WebServiceHost
210
WebHttpBinding
210
WebHttpBehavior
210
WebOperationContext
210
WebMessageFormat
211
The WebGet attribute
211
The WebInvoke attribute
212
UriTemplate
212
Table of Contents
[
vi
]
REST-based Web Services
213
What is the OData Protocol?
214
Working with WCF Data Services and Entity Framework
217
Working with OData Services using WCF and ASP.NET
MVC Framework
222
Working with Protobuf WCF Services
225
Protocol Buffers
225
Creating Protobuf-net objects
226
Integrating Protobuf.NET with Visual Studio
227
Implementing the WCF Service
227
Specifying binding information
228
Summary 229
Appendix: Advanced Concepts
231
REST and REST-based service frameworks
231
Ruby on Rails
232
Restlet
232
Django REST
233
The Flickr REST API
233
The Google API
233
Yahoo Social REST APIs
234
Exploring OData
234
HTTP methods, request, and response codes
236
Abbreviations 238
New features in Entity Framework 7
238
Suggested reading
239
Index 241
[
vii
]
Preface
The ADO.NET Entity Framework, the next generation of Microsoft's data access
technology, is an extended Object Relational Mapping (ORM) technology that makes
it easy to tie together the data in your database with the objects in your applications.
This is done by abstracting the object model of an application from its relational or
logical model. It is an extended ORM in the sense that it provides many additional
features that a traditional ORM does not.
This book is a clear and concise guide to the ADO.NET Entity Framework. Packed
with plentiful code examples, this book helps you learn the ADO.NET Entity
Framework and ADO.NET Data Services and build a better data access layer for
your application.
The intent of writing this book is updating you to the latest trends and developments
as far as Entity Framework is concerned.
What this book covers
Chapter 1
,
Introducing the ADO.NET Entity Framework
, is an introduction to the basics
of the ADO.NET Entity Framework (EF), its usefulness, features, and benefits.
Chapter 2
,
Getting Started
, discusses how you can get started with EF, create an Entity
Data Model (EDM), and write a program to query data.
Chapter 3
,
Entities, Relationships, and the Entity Data Model
, gives a detailed explanation
of entities, relationships, and each of the sections of the EDM.
Chapter 4
,
Working with Stored Procedures in the Entity Data Model
, provides a sample
application that illustrates how to perform CRUD operations against the EDM.
Chapter 5
,
Working with Entity Client and Entity SQL
, discusses the Entity SQL query
language and how to work with the Entity Client provider.
Preface
Do'stlaringiz bilan baham: |