Programming Books C Java PHP Python Learn more Browse Programming Books

Sorry, this item is not available in
Image not available for
Image not available

To view this video download Flash Player


Sign in to turn on 1-Click ordering
Sell Us Your Item
For a $2.96 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Start reading Entity Framework 4.0 Recipes on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Entity Framework 4.0 Recipes: A Problem-Solution Approach (Expert's Voice in .NET) [Paperback]

by Larry Tenny, Zeeshan Hirani
4.3 out of 5 stars  See all reviews (27 customer reviews)

List Price: $54.99
Price: $40.63 & FREE Shipping. Details
You Save: $14.36 (26%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Gift-wrap available.
Want it Monday, April 28? Choose Two-Day Shipping at checkout. Details
Free Two-Day Shipping for College Students with Amazon Student


Amazon Price New from Used from
Kindle Edition $31.72  
Paperback $40.63  
Shop the new
New! Introducing the, a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Book Description

May 5, 2010 1430227036 978-1430227038 1

Entity Framework 4.0 Recipes provides an exhaustive collection of ready-to-use code solutions for Entity Framework, Microsoft’s vision for the future of data access. Entity Framework is a model-centric data access platform with an ocean of new concepts and patterns for developers to learn. With this book, you will learn the core concepts of Entity Framework through a broad range of clear and concise solutions to everyday data access tasks. Armed with this experience, you will be ready to dive deep into Entity Framework, experiment with new approaches, and develop ways to solve even the most difficult data access challenges. If you are a developer who likes to learn by example, then this is the right book for you.

  • Gives ready-to-use, real-world recipes to help you with everyday tasks
  • Provides guideposts for learning core concepts
  • Maps out key landmarks for experimenting with your own solutions

What you’ll learn

  • Solve the most common data access problems using Entity Framework.
  • Implement basic data access design patterns using Entity Framework.
  • Seamlessly model your solutions across both code and data.
  • Improve data access performance.
  • Use data binding to simplify and reduce your code.
  • Leverage the recipes to empower your own exploration of Entity Framework.

Who this book is for

This book is for anyone learning Microsoft’s Entity Framework—Microsoft’s primary data access platform. If you have ever struggled to learn a new technology, programming model, or way of doing something, you know how helpful simple, real-world examples can be. For the beginning developer, this book provides concrete examples for common data access tasks. For developers with experience with previous Microsoft access platforms, this book provides a task-by-task mapping between previous approaches and the patterns used in Entity Framework.

Table of Contents

  1. Getting Started With Entity Framework
  2. Entity Data Modeling Fundamentals
  3. Querying an Entity Data Model
  4. Using Entity Framework in ASP.NET
  5. Loading Entities and Navigation Properties
  6. Beyond the Basics with Modeling and Inheritance
  7. Working with Object Services
  8. Plain Old CLR Objects
  9. Using the Entity Framework in N-Tier Applications
  10. Stored Procedures
  11. Functions
  12. Customizing Entity Framework Objects
  13. Improving Performance
  14. Concurrency
  15. Advanced Modeling

Frequently Bought Together

Entity Framework 4.0 Recipes: A Problem-Solution Approach (Expert's Voice in .NET) + Programming Entity Framework: Building Data Centric Apps with the ADO.NET Entity Framework + Programming Entity Framework: DbContext
Price for all three: $102.95

Buy the selected items together

Editorial Reviews

About the Author

Larry Tenny has more than 20 years experience developing applications using a broad range of development tools primarily targeting the Microsoft platform. He has extensive .NET development experience. He has a Ph.D. in computer science from Indiana University.

Zeeshan Hirani actively uses Entity framework in the development of an e-commerce web site for a top-300 ecommerce retailer. He has written several articles and maintains and active and influential Entity framework blog at

Product Details

  • Paperback: 648 pages
  • Publisher: Apress; 1 edition (May 5, 2010)
  • Language: English
  • ISBN-10: 1430227036
  • ISBN-13: 978-1430227038
  • Product Dimensions: 9.3 x 7.6 x 1.4 inches
  • Shipping Weight: 2.5 pounds (View shipping rates and policies)
  • Average Customer Review: 4.3 out of 5 stars  See all reviews (27 customer reviews)
  • Amazon Best Sellers Rank: #462,710 in Books (See Top 100 in Books)

More About the Authors

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

Most Helpful Customer Reviews
32 of 36 people found the following review helpful
1.0 out of 5 stars Don't buy the Kindle version.... January 21, 2011
Format:Kindle Edition|Verified Purchase
The Kindle version is so incomplete as to be completely worthless. Almost none of the images or example code that is referenced made it into the Kindle version from the print version.
Was this review helpful to you?
15 of 17 people found the following review helpful
4.0 out of 5 stars Good book on EF 4.0 August 25, 2010
I have learned a lot from this book and used some methods in the book for my application, so I am a grateful reader. Since this book has been praised by so many reviews, I thought it would be most useful for me to state the strengths of this book quickly then follow it with my reservations that prevented me from giving 5 stars to it.

It is very readable and well organized. It is more than a collection of recipes because the first few chapters could give a beginner a good start on EF. Some people may think it has a lot of redundancy by providing a complete list of the code for each recipe, I personally like the completeness (I have the eBook version so the thickness does not bother me at all).

Here are my reservations:

1. There are three methods to query a conceptual model in EF - LINQ to Entities, Entity SQL, Query builder methods. This could be confusing to novice readers. The book mixes all of them and it may be the best approach to mix them to achieve the most elegant code, but I wish the author could share the rationale of each mixture which can be very educational.

2. Each recipe is a method to solve a problem with a specific approach but it may not be the best overall method. I wish the book could clearly point out this. A typical example is recipe 4-3 which is a method for assigning a value to a property with code during data saving. This is a very common scenario for data entry applications (e.g. setting the user ID value which is not entered by the user for each record) and it is usually achieved by a single line of code in an event handler of a control.
Read more ›
Was this review helpful to you?
5 of 6 people found the following review helpful
4.0 out of 5 stars Why this book is important... July 4, 2010
This book is handy because it shows you how to work around limitations in the designer (there are many) to achieve what is desired. Trust me, there are many normal things you want to do with a relational schema that the designer cannot handle (such as link tables). The authors give straightforwards instructions how to get around the designer limitations without having to hand edit the edmx file after each modification (something I've had to do quite a bit).

I do share the criticism one other reader raised - that the common steps are repeated add nauseum, but in some ways I guess that is like any recipe book, so I suppose you could argue that's the way it should be done.

Until the updated Lerman book comes out(and perhaps beyond - it's hard to know), this book will be very useful to anyone diving into EF 4.0 development and will save you a lot of frustration.
Comment | 
Was this review helpful to you?
5 of 6 people found the following review helpful
Format:Paperback|Verified Purchase
Have been using Entity Framework for almost 2 years (starting back in the beta days!).

Straight-forward in the beginning, Entity Framework can become complex quickly, as you begin implementing complicated business rules and processing operations.

Here, "Entity Framework 4.0 Recipes" is a life-safer as it provides you concise, easy-to-follow, step-by-step examples on resolving the wide variety of questions you could encounter.

Cleverly, the authors (Tenny and Hirani), invested considerable time monitoring the Entity Framework forums, identifying recurring questions and delivering thier problem-solving approach.

Bottom line: This book is "must-have" as it will save you hours of time and frustration researching solutions to the various questions you may encoutner when using Entity Framework. Do not start your project without it!

Couple this book with "Programming Entity Framework", by Julia Lerman, and you will have all the ammunition you need to successfully work Entity Framework.

If you have more questions, feel free to email me at

- rob
Comment | 
Was this review helpful to you?
2 of 2 people found the following review helpful
3.0 out of 5 stars Does not address code-first modeling at all January 30, 2013
This book doesn't address "code first" modeling at all. Don't buy it if that is how you are planning on doing modeling. The recipes are good if you are doing your modeling in SQL or are starting with an existing SQL database.
Comment | 
Was this review helpful to you?
2 of 2 people found the following review helpful
5.0 out of 5 stars One of the best .NET books July 29, 2010
Format:Paperback|Verified Purchase
This is excellent book with a lot real life examples. Usually developers think in terms of database. Table maps to an object, LINQ to SQL kind of approach.

However EF4.0 gives you ability to map your objects to part of the table or to multiple tables. It shows you how inheritance can be represented in database.

Even if you not going to use EF in your working environment, still this book gives you a lot of ideas and best practices to think of.
Comment | 
Was this review helpful to you?
2 of 2 people found the following review helpful
5.0 out of 5 stars Good book on Entity Framework June 26, 2010
Format:Paperback|Verified Purchase
This book gives great examples to follow and solve problems when using Entity Framework. It has extensive recipes which you can follow to solve Entity Framework problems. The recipes cover most of the areas one needs in order to use Entity Framework. The recipes show examples using both Linq and esql and when necesary builder methods that can be used on the model.
Comment | 
Was this review helpful to you?
1 of 1 people found the following review helpful
1.0 out of 5 stars kindle version - worthless January 5, 2014
By david
Format:Kindle Edition|Verified Purchase
i have bought the paperback and the kindle(to get a head start).
the Kindle version is absolutely worthless and Amazon should return my money. there is so much necessary data on how to get from model creation to how to address the model in code that is missing that you cant use it.
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
5.0 out of 5 stars Good Book
This book just shows what to do and doesn't waste time with extras. The book got me what I needed.
Published 13 months ago by Terry Sample
5.0 out of 5 stars Outstanding text, even for beginners to the subject
Recipes book are typically best suited for folks who are already somewhat versed in the subject but want to find solutions to a very particular problem or to check the validity of... Read more
Published 20 months ago by Riccardo Audano
5.0 out of 5 stars An excellent "How To..."
I learned more in the first 25 pages than I had trying to plow through the 1,000 or so pages of the MS (un)help(ful)section of the .NET 4. Read more
Published on March 24, 2012 by P. Sutton
5.0 out of 5 stars An Excellent book
A practical and to the point book. This is the kind of a book that you know the author has had real life experience and not just theory. Read more
Published on December 22, 2011 by B. Hayat
5.0 out of 5 stars Useful, Clear and Easy
Pretty straight forward book. If you start to do the recipes, in a few days you will feel that you can master the Entity Framework without problems. Read more
Published on June 18, 2011 by HART
5.0 out of 5 stars Pick what interests you
I've read this book in both a front-to-back approach and also just jumped forward when I had an immediate challenge that I needed answers for. Read more
Published on April 24, 2011 by ROBERT
4.0 out of 5 stars Nicely written book
I'm typically not a fan of these types of books, scenario driven with solutions being shown. That's because I don't want to be shown how to do something, rather I want to know why... Read more
Published on February 9, 2011 by Javaman
5.0 out of 5 stars Authors did an excellent job
"Entity Framework 4.0 Recipes" is an excellent book. I highly recommend this book for some one interested in EF 4.0. I am using EF 3. Read more
Published on January 18, 2011 by Sathish Madhi
3.0 out of 5 stars Learn by Example Only
The book has great recipes but for me it needs another chapter or 2 on the EF terminology. As the book states there is a lot of terminology rotating around data modeling. Read more
Published on December 19, 2010 by Michael W. Schellenberger
5.0 out of 5 stars Outstanding Work
Great approach used to educate the reader about EF and how to use it. The recipe approach nails it for me. Read more
Published on October 22, 2010 by Codepuller
Search Customer Reviews
Only search this product's reviews

What Other Items Do Customers Buy After Viewing This Item?


There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
First post:
Prompts for sign-in

Look for Similar Items by Category