(Paperback - Aug. 26, 2010)
by Julia Lerman
Sales Rank: 9615
List Price: $59.99 $30.00 At Amazon
Paperback: 912 pages
Publisher: O'Reilly Media; Second Edition edition August 19, 2010
Language: English
ISBN-10: 0596807260
ISBN-13: 978-0596807269
Product Dimensions:
9.3 x 7.1 x 1.8 inches
Shipping Weight: 3.1 pounds
Amazon.com Review
Programming Entity Framework is a thorough introduction to Microsoft's new core framework for modeling and interacting with data in .NET applications. This highly-acclaimed book not only gives experienced developers a hands-on tour of the Entity Framework and explains its use in a variety of applications, it also provides a deep understanding of its architecture and APIs. Although this book is based on the first version of Entity Framework, it will continue to be extremely valuable as you shift to the Entity Framework version in .NET Framework 4.0 and Visual Studio 2010. From the Entity Data Model (EDM) and Object Services to EntityClient and the Metadata Workspace, this book covers it all.
Working with Object Services
(Excerpt from Chapter 9)
Most of the work that you will do in the Entity Framework will involve the objects that are based on the entities in your Entity Data Model (EDM). The Object Services API is the part of the framework that creates and manages these objects. Although you have worked with Object Services in much of the code you wrote in earlier chapters, and you have touched on a variety of its topics along the way, you haven't yet seen the big picture. The API has a lot of tools that you can access directly to take charge of your entity objects. This chapter is devoted to giving you a better understanding of the Object Services API: what it is responsible for, what it does under the covers, and some of the ways that you can take advantage of it. You will learn about how queries are processed and turned into objects, how these objects are managed during their life cycle, and how Object Services is responsible for the way entities are related to each other. You will see how the ObjectQuery works and how it relates to LINQ to Entities queries under the covers. This chapter will also give you a better understanding of how Object Services manages an entity's state, beyond what you learned in Chapter 5. As you become more familiar with the purpose, features, and implementation of Object Services, you will be better prepared to solve some of the challenges you will face as you move from using the "drag-and-drop" application-building features that Visual Studio provides to building enterprise applications where you need to have much more control over how all of the pieces of the application interact with one another.
Where Does Object Services Fit into the Framework?
Object Services is at the top of the food chain in the Entity Framework. The namespace for this API is System.Data.Objects, and it provides all of the necessary functionality for generating and interacting with the objects that are shaped by the conceptual layer and are populated from a data store. As shown in the figure, Object Services initially processes your LINQ to Entities and ObjectQuery queries, as well as materializes the query results into objects.
Object Services as it relates to the rest of the Entity Framework stack You can divide the core functionality of Object Services into seven areas: 1) Query processing 2) Object materialization 3) Object management 4) Object relationship management 5) Object state management 6) Database Manipulation Language (DML) command processing 7) Additional features
--This text refers to an out of print or unavailable edition of this title.
Customer Reviews & Comments This is definitely the book to have by your side if you are programming with the ADO.NET Entity Framework 1.0.
The author touches on a ton of subjects that include: Data Binding with Windows Forms and WPF Applications, Using Stored Procedures with the EDM, LINQ to Entities Queries, Customizing Entities, Using the ASP.NET EntityDataSource Control, Using Entities with Web and WCF Services, Using the Entity Framework in n-Tier ASP.NET Applications and n-Tier Client-Side Applications, Handling Entity Framework Exceptions, Performance, Security, Multithreaded Applications, and much more.
There is a lot covered in this book. One of the coolest things about this book is the amount of new possibilities it introduces. Many which I would not have considered without seeing them in this book.
I also like that the book covers the architectural aspects of integrating EF into several different types of architectures.
The author drills into each subject enough to get a thorough understand. With all the material covered, that is rare, but the book is an 800 page whopper.
I have been working with the EF 1.0 since its release in August and can say that this book has more information jammed into it than all the other resources I have been using combined.
The book includes VB.NET and C# code examples.
The book has a support site (google for learnentityframework) with the code samples and the database scripts available. The downloaded code is also in both VB.NET and C#. It is well organized and very usable.
The book is very well organized and is a good read. The author has a good writing style.
All in all, I do not think you can do without this book if you are going to do anything besides play around with the Entity Framework.