Book Image

Entity Framework Tutorial (Update) - Second Edition

By : Joydip Kanjilal
Book Image

Entity Framework Tutorial (Update) - Second Edition

By: Joydip Kanjilal

Overview of this book

The ADO.NET Entity Framework from Microsoft is a new ADO.NET development framework that provides a level of abstraction for data access strategies and solves the impedance mismatch issues that exist between different data models This book explores Microsoft’s Entity Framework and explains how it can used to build enterprise level applications. It will also teach you how you can work with RESTful Services and Google’s Protocol Buffers with Entity Framework and WCF. You will explore how to use Entity Framework with ASP.NET Web API and also how to consume the data exposed by Entity Framework from client applications of varying types, i.e., ASP.NET MVC, WPF and Silverlight. You will familiarize yourself with the new features and improvements introduced in Entity Framework including enhanced POCO support, template-based code generation, tooling consolidation and connection resiliency. By the end of the book, you will be able to successfully extend the new functionalities of Entity framework into your project.
Table of Contents (16 chapters)
Entity Framework Tutorial Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introducing WCF Data Services


Primarily designed in order to separate the presentation layer and data in a REST-based model, WCF Data Services are used to expose data as a service so it can be accessed via HTTP requests. You can use the standard HTTP verbs MERGE, GET, POST, PUT, and DELETE and perform CRUD operations against the service. WCF Data Services expose the database schema in terms of XML metadata. It uses Atom and JSON data formats for data transfers over the HTTP protocol.

WCF Data Services isolate the Data Access Layer and expose data via WCF Services. We do not need to have the presentation layer as a consumer of Data Services. We could also have another service as occurs in SOA scenarios.

You can use WCF Data Services to expose data through Web Services in terms of EDM abstractions such as EDM objects. These objects can then be accessed by any application in much the same way such as a Web Service is accessed.

How do WCF Data Services and Web Services differ?

The primary difference...