Programming Entity Framework

Programming Entity Framework
by Julia Lerman

Programming Entity Framework
List Price: $54.99
Our Price: $13.54
You Save: $41.45 (75%)
Availability: Usually ships in 1-2 business days
Buy Used: from $0.01 (click here)
Category: Book
See more book details and other editions


(Click here)
Buy this book at online book store in your country
Canada | UK | Germany | France

Book Summary Information

Author: Julia Lerman
Edition: Paperback
Audio: English (Unknown); English (Original Language); English (Published)
Published: 2009-02-10
ISBN: 059652028X
Number of pages: 832
Publisher: O'Reilly Media

Book Reviews of Programming Entity Framework

Book Review: You gotta learn EF
Summary: 5 Stars

Entity Framework (EF) will be a foundational technology for Microsoft for many years to come...just poke around Microsoft's site and see how many other departments are using it outside of the ADO.NET team. There already are database EF adapters for Oracle and IBM's DB2 amongst other databases...Oracle and IBM see the future and so should you. You can add EF to the list of must-learn technologies for the Microsoft platform which also includes WCF, WF, LINQ and WPF/SilverLight. Combine EF and WPF/SilverLight, using MVVM for the Presentation Model, with Prism/Unity for modular design and cross cutting concerns (validation, logging, cache, security, real-time constraints, monitoring, ?business rules) you will have a powerful architectural infrastructure. Domain Driven Design (DDD) is the architectural mindset Microsoft is blueprinting with EF a cornerstone of DDD implementation. Model Driven Development will mature in the future "Oslo" effort and EF will figure prominently. DDD is as much a team discipline and mindset as it is an architectural pattern that EF facilitates. In EF version 1 (EFv1), combined with present day modeling tools, is already better than OMG's MDA(Model Driven Architecture) in building real world applications in my opinion. EFv1 currently supports the Active Record pattern (as does LINQ-to-SQL according to Dino Esposito in Microsoft® .NET: Architecting Applications for the Enterprise (PRO-Developer)) with further support for Domain Model pattern in the upcoming EF4 (i.e. EF version 2 on .NET 4.0). EF is more than an ORM, but EFv1 is not without well placed criticism of shortcomings implementing DDD and impairment of various development methodologies such as Agile. Nevertheless going forward EF, especially with upcoming EF4 will more fully follows DDD principles, will be everywhere, so you might is well start now. The concepts will be the same in EF4 with added benefits of "model first" design, support for POCO (plain old CLR objects), N-Tier, Reports, and improved Testability as well as the niggling issue of "pluralization". NHiberbnate, an open source project supported by RedHat, reportedly has many of these features planned for EF4 now, but does not have the weight of a broad Microsoft strategy behind it. Choosing NHibernate over EF, is an important strategic/emotional decision. Ideablade's DevForce , which builds off EFv1 now and soon EF4 when it is released, helps with some of these pain points and more now....but you still need to understand EF. Architecting software is difficult and there are no tools to magically create well designed architectural patterns. EF as a foundational component will put you on a solid footing and put you in a DDD frame of mind, while doing a good deal of grunt work for you, so you can spend more time on business logic and UI usability.

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.

Summary of Programming Entity Framework

If you use Entity Framework in Visual Studio 2008 and .NET 3.5, this is the book you want. Programming Entity Framework, 1st Edition offers experienced developers a thorough introduction to Microsoft's core framework for modeling and interacting with data in .NET applications. This hands-on tour provides a deep understanding of Entity Framework's architecture and APIs, and explains how to use the framework in a variety of applications built with Visual Studio 2008 and .NET 3.5.

From the Entity Data Model (EDM) and Object Services to EntityClient and the Metadata Workspace, this highly acclaimed first edition covers it all.

  • Understand the core concepts you need to make the best use of the Entity Framework (EF) in your applications
  • Learn to query your data, using either LINQ to Entities or Entity SQL
  • Create Windows Forms, WPF, and ASP.NET applications
  • Build ASMX web services and WCF services
  • Use Object Services to work directly with your entity objects
  • Delve into model customization, relationship management, change tracking, data concurrency, and more

One important note: while many of the lessons from this book will continue to be valuable as you move to .NET 4, the thoroughly revised second edition of Programming Entity Framework specifically targets Visual Studio 2010 and .NET 4 -- where there have been many advancements and additions to the framework.



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

Computer Science Books

Book Subjects
Most talked about in Computer Science Books
The Unofficial Guide to Surviving Y2K (Unofficial Guides) ImageThe Unofficial Guide to Surviving Y2K (Unofficial Guides)
by Laura Harrision McBride
Wiley; Published: 1999-09-15; Paperback; Book
Best price: $240.62
Systems Analysis: Definition, Process and Design ImageSystems Analysis: Definition, Process and Design
by Philip C. Semprevivo
Sra; Published: 1982-07; Hardcover; Book
Price in other shops: $42.00
FORTRAN 77 and Numerical Methods for Engineers and Scientists ImageFORTRAN 77 and Numerical Methods for Engineers and Scientists
by Larry Nyhoff, Sanford Leestma
Macmillan Pub Co; Published: 1995-04-20; Textbook Binding; Book
Best price: $175.84
Design and Development of Expert Systems and Neural Networks ImageDesign and Development of Expert Systems and Neural Networks
by Larry Medsker, Jay Liebowitz
Prentice Hall; Published: 1993-10-04; Hardcover; Book
Best price: $43.73
Price in other shops: $144.00
Calculated Bets: Computers, Gambling, and Mathematical Modeling to Win (Outlooks) ImageCalculated Bets: Computers, Gambling, and Mathematical Modeling to Win (Outlooks)
by Steven Skiena
Cambridge University Press; Published: 2001-08-06; Paperback; Book
Best price: $16.99
Price in other shops: $28.99
The Jazz ImageThe Jazz
by Melissa Scott
Tor Books; Published: 2000-06-03; Hardcover; Book
Best price: $2.95
Price in other shops: $23.95
B2B Application Integration: e-Business-Enable Your Enterprise ImageB2B Application Integration: e-Business-Enable Your Enterprise
by David S. Linthicum
Addison-Wesley Professional; Published: 2000-12-15; Paperback; Book
Best price: $2.08
Price in other shops: $44.99
Conceptual Spaces: The Geometry of Thought ImageConceptual Spaces: The Geometry of Thought
by Peter Gärdenfors
The MIT Press; Published: 2000-03-20; Hardcover; Book
Best price: $34.99
Price in other shops: $48.00
Autonomic Computing ImageAutonomic Computing
by Richard Murch
IBM Press; Published: 2004-04-03; Hardcover; Book
Best price: $10.50
Price in other shops: $39.99
Advanced Digital Design with the Verilog HDL (2nd Edition) ImageAdvanced Digital Design with the Verilog HDL (2nd Edition)
by Michael D. Ciletti
Prentice Hall; Published: 2010-01-31; Hardcover; Book
Best price: $100.00
Price in other shops: $181.00
Similar Books and other products
LINQ in Action ImageLINQ in Action
by Fabrice Marguerie, Steve Eichert, Jim Wooley
Manning Publications; Published: 2008-02-11; Paperback; Book
Best price: $16.96
Price in other shops: $44.99
Programming WCF Services ImageProgramming WCF Services
by Juval Lowy
O'Reilly Media; Published: 2008-11-13; Paperback; Book
Best price: $11.55
Price in other shops: $49.99
RESTful .NET: Build and Consume RESTful Web Services with .NET 3.5 ImageRESTful .NET: Build and Consume RESTful Web Services with .NET 3.5
by Jon Flanders
O'Reilly Media; Published: 2008-11-28; Paperback; Book
Best price: $20.00
Price in other shops: $39.99
WPF 4 Unleashed ImageWPF 4 Unleashed
by Adam Nathan
Sams; Published: 2010-06-14; Paperback; Book
Best price: $31.98
Price in other shops: $59.99
Programming WCF Services: Mastering WCF and the Azure AppFabric Service Bus ImageProgramming WCF Services: Mastering WCF and the Azure AppFabric Service Bus
by Juval Lowy
O'Reilly Media; Published: 2010-08-30; Paperback; Book
Best price: $29.38
Price in other shops: $54.99
Pro ASP.NET MVC 3 Framework ImagePro ASP.NET MVC 3 Framework
by Steven Sanderson, Adam Freeman
Apress; Published: 2011-06-27; Paperback; Book
Best price: $33.47
Price in other shops: $54.99
Pro ASP.NET MVC 2 Framework (Expert's Voice in .NET) ImagePro ASP.NET MVC 2 Framework (Expert's Voice in .NET)
by Steven Sanderson
Apress; Published: 2010-06-30; Paperback; Book
Best price: $24.98
Price in other shops: $54.99
Microsoft® .NET: Architecting Applications for the Enterprise (Pro-Developer) ImageMicrosoft® .NET: Architecting Applications for the Enterprise (Pro-Developer)
by Dino Esposito, Andrea Saltarello
Microsoft Press; Published: 2008-10-15; Paperback; Book
Best price: $26.35
Price in other shops: $44.99
Entity Framework 4.0 Recipes: A Problem-Solution Approach (Expert's Voice in .NET) ImageEntity Framework 4.0 Recipes: A Problem-Solution Approach (Expert's Voice in .NET)
by Larry Tenny, Zeeshan Hirani
Apress; Published: 2010-05-06; Paperback; Book
Best price: $37.08
Price in other shops: $49.99
Programming Entity Framework: Building Data Centric Apps with the ADO.NET Entity Framework ImageProgramming Entity Framework: Building Data Centric Apps with the ADO.NET Entity Framework
by Julia Lerman
O'Reilly Media; Published: 2010-08-26; Paperback; Book
Best price: $32.49
Price in other shops: $59.99
Book store. Illustrated catalog of books on different categories