- Paperback: 832 pages
- Publisher: O'Reilly Media; 1 edition (February 13, 2009)
- Language: English
- ISBN-10: 059652028X
- ISBN-13: 978-0596520281
- Product Dimensions: 7.1 x 1.7 x 9.1 inches
- Shipping Weight: 2.4 pounds (View shipping rates and policies)
- Average Customer Review: 30 customer reviews
- Amazon Best Sellers Rank: #1,587,596 in Books (See Top 100 in Books)
Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
To get the free app, enter your mobile phone number.
Programming Entity Framework 1st Edition
Use the Amazon App to scan ISBNs and compare prices.
There is a newer edition of this item:
All Books, All the Time
Read author interviews, book reviews, editors picks, and more at the Amazon Book Review. Read it now
Frequently bought together
Customers who bought this item also bought
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
Building Data Centric Apps with the ADO.NET Entity Framework
Top customer reviews
Aside from the book being well-written, the combination of screen shots, notes and codes in both VB and C# makes the material easier to "stick". The reason for having both languages is the fact that C# and VB has some language distinctions that may not well translate easily into the other language, and vice-versa. It helps to have both just for reference. The book is filled with every information that you'll need to know to work with Entity Framework, and every options are explored as far as utilizing the available features. People with no experience regarding Entity Framework or LINQ to SQL will be able to pick up things easily since it all starts with the basics and build upon the previous examples.
Overall, I highly recommend this book to anyone who are interested in getting to know Entity Framework from the inside-out. The book is well-written and the topics are easy to understand. If you've been wondering about the intricacy of EF such what the underlying metadata does, or how queries are being executed, among other things, then this is it.
I'm loving this book because while it assumes the reader knows how to write a program, it doesn't assume that the reader is a .NET programmer. It explains Entity Framework excellently while also explaining Visual Studio/.NET concepts succinctly, without wasting the reader's time explaining what an integer is.
The many pointers to web resources for further information are greatly appreciated and increase the book's value to someone, like me, coming to .NET rather late in the game without bogging down the book for seasoned .NET programmers.
Finally, the author's use of a "brown field" application for the examples, complete with "legacy typos" and examples of how EF can free you of legacy design flaws while leaving the legacy intact show that the author has been in the trenches writing real code and has a great deal of wisdom beyond Entity Framework to share.
The table was set with Entity Relationship Modeling by Dr. David Chen in the 70's and garnished by Martin Fowler's Patterns of Enterprise Application Architecture (Addison-Wesley Signature Series) Eric Evans'Domain-Driven Design: Tackling Complexity in the Heart of Software and Jimmy Nillsson's Applying Domain-Driven Design and Patterns: With Examples in C# and .NET, DDD is now being served to the masses by Microsoft. Julia Lerman with "Programming Entity Framework" does not try to emulate these seminal works. She takes you in a practical step by step approach through EFv1 without being a simplistic Step-by-Step book. The initial examples are simple, but it would be asinine to use Adventure Works in the initial chapters unless you are like Kobayashi at Nathan's hotdog eating contest. I like my hotdogs and concepts one at a time. The examples and databases become more complex as the book goes forward showing the nitty gritty underpinnings and practical applications of EF.
Despite Julia's reluctance to write books, as suggested in her preface, I think she will be on the book publishing treadmill for a long time given the raves about this book, EF's strategic positioning by Microsoft and the attendant demand for well explained intricacies of this emergent technology. Her book is wonderfully explanatory, especially compared to the other book on the market regarding LINQ and EF. I predict she will not be able to resist readers holding up their lighters, like at a concert begging for an encore, especially with EF4 around the corner followed by EF5.
Most recent customer reviews
If you don't know what you are talking after doing the hands on, on this book, then the book has done it's job
The first ten chapters...Read more