Book Review – Entity Framework 4 In Action

January 26, 2011

Book Review – Entity Framework 4 In Action


I spent some time lately to read the book “Entity Framework 4 in Action” which was written by several Book Review – Entity Framework 4 In Actionauthors – Stefano Mostarda, Marco De Sanctis and Daniele Bochicchio. This book was sent to me by Manning Publications as part of the Manning Early Access Program (MEAP).


What You are Going to Gain from The Book?


The book is all about Entity Framework 4. The authors don’t assume that you are familiar with the technology and they take you to an Entity Framework tour. At the end of the book you will have a lot of Entity Framework knowledge. The flow of the book is great and there are lots of details and hidden gems that can help you whether you are a junior Entity Framework developer and whether you are a senior Entity Framework developer. The authors take you step by step in the Entity Framework path and late chapters rely on previous ones which help you to build the knowledge gradually.


What is Included in The Book?


The book isn’t small – approximately 550 pages and includes 19 chapters and 2 appendices (LINQ appendix and Tip & Tricks appendix). The book is divided into 4 parts which are



  • Redefining your data access strategy

  • Working with Entity Framework

  • Mastering Entity Framework

  • Applied Entity Framework.

Every part relies on the previous parts and therefore you can’t read the parts as standalone if you are a novice in Entity Framework. If you are a senior Entity Framework developer you can read the parts as standalone but you’ll probably miss some details which are included in previous parts. 



  • Chapter 1: Data access reloaded: Entity Framework
    The chapter include a discussion about the ORM world and also about the impedance mismatch which lead to the development of ORMs.

  • Chapter 2: Getting started with Entity Framework
    In the chapter the authors shows and describe how to build the Entity Framework part of an application that will be used across the book. During the chapter you’ll get to know what is Entity Framework and will learn a lot of basic stuff.

  • Chapter 3: Querying the model: the basics
    This chapter is all about the basics of querying the Entity Framework model. You will get to know the ways to do that and what is happening under the hood in the query process.

  • Chapter 4: Querying with LINQ to Entities
    The chapter will explain in details what is LINQ to Entities and how to use it.

  • Chapter 5: Domain model mapping
    This chapter is all about the EDM. You will hand craft the EDM parts manually and will gain valuable knowledge about its XML.

  • Chapter 6: Understanding entity lifecycle
    The chapter describes the entity life cycle and the change tracking mechanism. This is a very important chapter since the details in it are very important to the understanding how Entity Framework is working under the hood.

  • Chapter 7: Persisting objects into the database
    The chapter describe how to perform data manipulations by using Entity Framework.

  • Chapter 8: Handling concurrency and transactions
    As in the chapter name, you will learn how to handle concurrency and transactions with Entity Framework.

  • Chapter 9: An alternative way of querying: Entity SQL
    In this chapter you will learn what is Entity SQL and how to apply in order to query the model.

  • Chapter 10: Working with stored procedures
    This chapter is all about stored procedures and how to use them in Entity Framework environment.

  • Chapter 11: Working with functions and views
    The chapter will explain how to use model defined functions and defining query elements.

  • Chapter 12: Exploring EDM metadata
    In this chapter you will gain the understanding how to use the MetadataWorkspace in order to make runtime EDM metadata queries.

  • Chapter 13: Customizing code and designer
    In the chapter you learn how to customize the code generation by changing the Entity Framework T4 templates. Also you will learn how to extend the Entity Framework designer.

  • Chapter 14: Designing the application around Entity Framework
    The chapter starts with a Domain Driven Design discussion and shows how Entity Framework can help you to design applications which are more Domain Driven.

  • Chapter 15: Entity Framework and ASP.NET
    The chapter will guide you how to use Entity Framework with ASP.NET with EntityDataSource.

  • Chapter 16: Entity Framework and N-Tier development
    The chapter discuss how to include Entity Framework inside N-Tier applications. You will learn about the Self-Tracking entities and how to use DTO design pattern.

  • Chapter 17: Entity Framework and Windows applications
    The chapter will guide you how to use Entity Framework with WPF and WinForms.

  • Chapter 18: Testing ADO.NET Entity Framework
    The chapter starts with a discussion about Unit Testing and explains how to test Entity Framework by using Microsoft Testing Framework.

  • Chapter 19: Keeping an eye on performance
    This chapter is all about performance tuning. I expected more from this chapter but the major things of performance tuning are there.

The Bottom Line


This is a good Entity Framework book and I recommend it especially for junior Entity Framework developers. The book’s content is more then enough to get started with Entity Framework and also it is organized well. There are discussions about methodologies like Domain Drive Design and Unit Testing that I really liked which add to the content you are reading and enrich your understanding. The book is doing it job by giving a good deep dive into Entity Framework 4. I give the book 5 stars out of 5.


Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*

8 comments

  1. adi inbarJanuary 27, 2011 ב 0:31

    dear gil.

    how you manage to read so much in such a short time.

    you have just finished HTML 5.0

    Reply
  2. Gil FinkJanuary 27, 2011 ב 8:51

    Hi Adi,
    It is all about time management 🙂

    Reply
  3. adi inbarJanuary 27, 2011 ב 11:14

    how this book vs julia lerman book?

    Reply
  4. Gil FinkJanuary 27, 2011 ב 11:51

    @Adi,
    Julia’s book is more thorough (and of course longer).
    If you search for a good EF4 book, both of the books will do the job.

    Reply
  5. Jim BancroftJanuary 28, 2011 ב 18:11

    Hi Gil,

    Thanks for the review.  I assume you’re dealing with the pre-release version of the book, since it’s not due until March?  I have the early access ebook subscription too and there are a lot of grammatical errors that have yet to be fixed (the authors are Italian, so that’s to be expected.)  But these grammar issues are so extensive at this point it’s very hard to follow the text.  How did you overcome this and get the meat out of it?

    Reply
  6. Gil FinkJanuary 29, 2011 ב 14:46

    @Jim,
    I’m working with and consulting about Entity Framework since its first CTPs so I could understand what the authors wrote and what they meant. I agree that there are a lot of grammatical errors which cut the flow of reading but as you wrote they will be fixed until March when the book will be published (I hope). The review I wrote is about the content itself without the grammer issues.

    Reply
  7. Matthew M.March 3, 2011 ב 2:24

    Hi Gil,
    What do you mean by: “The book is written in fluent language”?

    I think the book is poor (ok, the content may be fine, but the language, the grammar erros and the structure are really poor).

    Thanks
    Matthew

    Reply
  8. Gil FinkMarch 3, 2011 ב 8:59

    Hi Matthew,

    As I wrote in my answer to Jim, there are a lot of grammatical errors which cut the flow of reading. Since this is a book that is supposed to be published during this month then I guess that it will have a technical writer review that will correct most of the errors (I hope). The content of the book is IMHO good but as I wrote to Adi I prefer Julia’s book which is more thorough.

    Best Regards,
    Gil

    Reply