CDN$ 31.50
  • List Price: CDN$ 34.93
  • You Save: CDN$ 3.43 (10%)
Only 3 left in stock (more on the way).
Ships from and sold by Gift-wrap available.
Programming Entity Framew... has been added to your Cart
Have one to sell?
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See all 2 images

Programming Entity Framework: DbContext Paperback – Mar 10 2012

See all 2 formats and editions Hide other formats and editions
Amazon Price
New from Used from
Kindle Edition
"Please retry"
"Please retry"
CDN$ 31.50
CDN$ 20.63 CDN$ 18.99

Save an Additional 10% on Textbooks When you Join Amazon Student

Special Offers and Product Promotions

  • Amazon Student members save an additional 10% on Textbooks with promo code TEXTBOOK10. Enter code TEXTBOOK10 at checkout. Here's how (restrictions apply)

Frequently Bought Together

  • Programming Entity Framework: DbContext
  • +
  • Programming Entity Framework: Code First
  • +
  • Programming Entity Framework: Building Data Centric Apps with the ADO.NET Entity Framework
Total price: CDN$ 118.01
Buy the selected items together

No Kindle device required. Download one of the Free Kindle apps to start reading Kindle books on your smartphone, tablet, and computer.

  • Apple
  • Android
  • Windows Phone
  • Android

To get the free app, enter your e-mail address or mobile phone number.

Product Details

  • Paperback: 258 pages
  • Publisher: O'Reilly Media; 1 edition (March 10 2012)
  • Language: English
  • ISBN-10: 1449312969
  • ISBN-13: 978-1449312961
  • Product Dimensions: 17.8 x 1.4 x 23.3 cm
  • Shipping Weight: 408 g
  • Average Customer Review: Be the first to review this item
  • Amazon Bestsellers Rank: #199,320 in Books (See Top 100 in Books)
  •  Would you like to update product info, give feedback on images, or tell us about a lower price?

  • See Complete Table of Contents

Product Description

Book Description

Querying, Changing, and Validating Your Data with Entity Framework

About the Author

Julia Lerman is the leading independent authority on the Entity Framework and has been using and teaching the technology since its inception in 2006. She is well known in the .NET community as a Microsoft MVP, ASPInsider, and INETA Speaker. Julia is a frequent presenter at technical conferences around the world and writes articles for many well-known technical publications including the Data Points column in MSDN Magazine.

Julia lives in Vermont with her husband, Rich, and gigantic dog, Sampson, where she runs the Vermont.NET User Group. You can read her blog at and follow her on Twitter at julielerman.

Rowan is based in Seattle, Washington and works as a Program Manager for the ADO.Net Entity Framework team at Microsoft. Prior to moving to the US he resided in the small state of Tasmania in Australia. Rowan speaks at technical conferences and blogs at Outside of technology Rowan's passions include snowboarding, mountain biking, horse riding, rock climbing and pretty much anything else that involves being active. The primary focus of his life, however, is to follow Jesus.

What Other Items Do Customers Buy After Viewing This Item?

Customer Reviews

There are no customer reviews yet on
5 star
4 star
3 star
2 star
1 star

Most Helpful Customer Reviews on (beta) HASH(0x9d2858dc) out of 5 stars 36 reviews
6 of 6 people found the following review helpful
HASH(0x9d2a94e0) out of 5 stars The Book on DbContext June 10 2012
By G. van Staden - Published on
Format: Kindle Edition
DbContext is covered in extreme detail in this book. The pace is gradual but you will really know how to use DbContext after reading this.

Given that DbContext is part of Entity Framework, I understand the need to make reference to other EF books. I think the book exploits this a bit and the numerous references to the authors' other books is annoying. The example code is also based on the authors' other books but, even if you have not read them, is understandable and useful.

The coverage ranges from an introduction to what DbContext is and how it fits-in to Entity Framework, through how it works and on to the future vision for DbContext and Entity Framework. This book contains more than recipes for successful use. Great detail is given as to how DbContext and EF work with code to create database queries, track changes and manipulate data.

In combination with the supporting website, which is excellent, this book is a valuable resources for anyone really wanting to gain complete understanding of DbContext.
4 of 4 people found the following review helpful
HASH(0x9d2a98e8) out of 5 stars Best Book on DBContext May 7 2012
By George - Published on
Format: Paperback
Julia Lerman is one of my go to people when it comes to Entity Framework. Between her several books, blogs and videos, she is one of the main sources for Entity Framework information.
Julia and Rowan writing style is easy to understand. The book is full of code examples without over doing it. The book is only a couple hundred pages, but covers the topic very well.
DbContext is only a part of Entity Framework, but an important part. Understanding it will make using Entity Framework much easier and make the developer much more productive.
Just understanding the differences between Lazy Loading, Eager Loading, Explicit Loading and understanding when your queries are querying against the database or local memory is worth getting the book.
The authors have other books on programming Entity Framework, but this is the most in-depth book covering DbContext. Not the first place to learn about Entity Framework, but when it comes to DbContext, at the moment, there is nothing better.
2 of 2 people found the following review helpful
HASH(0x9d2a9960) out of 5 stars Great Guided Tour of the API April 6 2012
By Liles Family - Published on
Format: Paperback
I just finished this on my kindle and I have to say, well done. It is a great guided tour of the API and will help just about everyone in some way. I especially like the validation dive, as well as the detailed explanations of the change tracker API. When you get into distributed transactions and dealing with N-tier applications, this is required knowledge. Having this as a reference is invaluable and should be a reserved spot in the library for anyone writing Code First Entity Framework.
1 of 1 people found the following review helpful
HASH(0x9d2a9cf0) out of 5 stars Great Book! Feb. 4 2014
By ComputerJunkie - Published on
Format: Paperback
What a page turner! Couldn’t put it down! Yeah, ok that’s the kind of things you might hear about a good novel, but seriously the author has taken the deeply technical material and made it very interesting and relevant!

The detailed handling of the capabilities of dbContext are superb and the examples used made it abundantly clear as to the best uses of the described features. I considered myself pretty knowledgeable with entity framework, but I found a great deal of new information stuffed into this relatively small book.

The information in the first chapters of the book get the basic user up to speed, while still pointing out tips to the advanced users. Going from the most basic differences between the older methods of using data with the entity framework to the new object description can be helpful to those with experience in the previous versions. I like the trick of setting up the context in a using statement to help to dispose the object.

The section on LINQ to entities as a good tutorial, but I wish there was a link to a reference on performance versus other methods of querying. Her description of the different methods of loading the object tree was very useful and can be of immediate benefit to most readers. The book illiterates the advantages and disadvantages of each technique in simple terms.

How EF handled change tacking was a mystery to me, but she clarified the methods used and techniques to enhance performance in a clear manner with great examples.

The coverage of data validations was likewise technical but written in a very understandable way. The techniques found here will save me time and effort in the future.

I had been looking for details of how to use the entity framework and dbContext in a disconnected and multi-tier environment and it was covered pretty well in this book although, I would have liked to see more than a couple of paragraphs on WCF Data services in a multi-tier environment.

I would highly recommend this book for anyone from novice to expert in the use of EF.
1 of 1 people found the following review helpful
HASH(0x9d2a9e28) out of 5 stars DbContext for EF5 better than EF4 books Jan. 7 2013
By James D. Perkins - Published on
Format: Paperback Verified Purchase
I purchased the first EF book based on EF4 and it was good but more confusing when trying to implement EF5 with DbContext. This book was helpful however it would help to have a reference in the back of the book to look up different topics. As far as I can tell it is the only book out there on EF5 and DbContext. I am currently working with EF5 on a project. After I completely implement the website using EF5 I will make a decision if I will ever use another ORM or not. I may go back to rolling my own SQL Stored Procedures, DAL, and BLL as I have done many times in the past which gives me more control and I fully understand the full data mapping. The only benefit to any ORM is time it should save to develop a project. Stored Procedures is the foundation anyway of any ORM plus it protects from injection. I have used other concepts from MS for data access and they were not bad but difficult to work with some times. I was trying to break up my project into layers and found it difficult with EF5 so I started over and put things into one project until I fully understand how to work with it better. I intend to breakup the project into layers later if I discover the need for scale-ability. Trying to implement repository pattern and unit of work is confusing since I have not tried those concepts in the past and also since EF is suppose to be doing that behind the scenes; it seems kind of redundant to implement some type of patterns if EF is already implementing a pattern. I like to use a DAL and a BLL. So EF should take the place of the DAL. I do like the concept of generating from the database plus update from the database. I am not sure any ORM will meet anyone's plug and play needs. The book is written to walk one through the concepts step by step but I tend to jump around technical books looking for instant answers to immediate problems. Mainly because I don't have the time to walk through a text book page by page I have projects to complete. I am not a full time developer so I look for quick answers to problems as I go along. I wish this book would give a fully layered example of using a DAL and BLL to also include a N-tier example with DAL and BLL. I rated this book 4 stars as it did give me some answers but it is the only book out there for EF5 using DbContext. I am using VS 2012 purposely for running EF5 and it is buggy. I spent many days with it crashing on me before I got it stable. I am in with VS 2012 for the long haul as it should get better.
Want to discover more products? Check out this page to see more: framework c#