Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


Programming Entity Framework is a thorough introduction to Microsoft's core framework for modeling and interacting with data in .NET applications. The second edition provides a hands-on tour of the ADO.NET Entity Framework (EF) and explains its use in a variety of applications. You'll also gain in-depth knowledge of its architecture and APIs -- information that will be extremely valuable as you shift to the Entity Framework version in .NET Framework 4.0 and Visual Studio 2010.

Subscriber Reviews

Average Rating: 4.380952380952381 out of 5 rating Based on 21 Ratings

"Wish I could find a different author on EF" - by Anonymous on 08-MAY-2014
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
Repeated scenario: I'm looking for something that from a database perspective should be simple, I find a Julie Lerman article, video, or book, and I can't find what I'm looking for or understand what she means: examples:

1. When adding or querying many hundreds of records, how should I get good performance?  

2. There seem to be many different ways of adding child records to parent ones. If I am just using SQL server and ADO, I need to add the lookups first, then add the next tier of lookups, then add the parent records. How should I do this with EF? Top down: add the parent  record and hang the child records off of that in one giant method? Bottom up: pass the parent's key to separate methods that build up the children? How to keep the keys and navigation properties linked between child and parent?

3. There seem to be lots of ways to add objects. When to use ObjectSet<T>.AddObject() vs. EntityCollection<T>.Add() vs .Add?

I have over 10 years' software development experience, and Lerman's writing style makes things hard to find. I'm not sure why her writing is so hard to understand, but it certainly is. Microsoft, please send a new EF expert!

Report as Inappropriate

"Dense Book, lots of stuff, difficult to read" - by Oldbrazil on 19-AUG-2013
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
The author is an expert. She lets you peek under the cover of EF, she provides lots of details and insider tips.

Alas, it is not always "well written" in that it uses lots of technical words that are very similar to each other. That's very confusing especially for a non native reader.

On top of that the book is very long, and lots of texts vaguely refers to coming chapters ...

The author should not try to write a novel, but a technical book that go to straight to the point, with short immediately understandable sentences.

Report as Inappropriate

"Solid book for quick start" - by DarkWalker on 01-MAR-2012
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
The book is quite solid and covers most of need-to-know basics of Entity Framework 4.1. There are some references for previous version (in case you can not get the first edition of the book).

The book provides very good examples (in C#, there is also code in VB, but I can not judge it's quality), step by step instructions for some complex actions, a lot of screen shots and useful links.

Another advantage is the structure of the book: I have read it from the 1st page, but if you are familiar with EF in general and want to check some chapter - go for it, the is no heavy cross-referencing and most of the context may be ignored.

The downsides are the following: first of all the 'right' project structure is presented near the end of the book. I was working on the project while reading this book and it was unfortunate to find out that my design was actually wrong from day 1.
Second, the unit testing is delayed quite a bit. I do understand that it is not the purpose of this book, but if the chapter is included - it should be placed near the begging (actually I would rather exclude this chapter at all and spread the chapter content across the hole book).
The last one is that the book does not provide some usability-boards. Sometimes you have a choice - for example between stored procedure and QueryView. The differences between these 2 are described in great detail, the pros and cons are explained, etc, but in order to make a decision you need EXPERIENCE, some real world examples list will make a great difference.

Report as Inappropriate

"By far the best Entity Framework book" - by Narbs on 05-JAN-2011
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
This book is by far the best book available that covers the Entity Framework in such detail. Julie did a great job on this book.
Report as Inappropriate

"The Bible for Entity Framework" - by maa on 09-OCT-2010
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
I have used it for my entrance into Entity Framework.  I find it readable, detailed and have not found errors in the code or text.  
Report as Inappropriate

Table of Contents



The publisher has provided additional content related to this title.


Visit the catalog page for Programming Entity Framework, 2nd Edition

  • Catalog Page

Visit the errata page for Programming Entity Framework, 2nd Edition

  • Errata

Download the supplemental electronic content for Programming Entity Framework, 2nd Edition

  • Supplemental Content