Location:  Home » Books » Programming Entity Framework    

Programming Entity Framework

Programming Entity FrameworkAuthor: Julia Lerman
Publisher: O'Reilly Media
Category: Book

List Price: $54.99
Buy Used: $15.53
as of 9/6/2010 22:02 CDT details
You Save: $39.46 (72%)

In Stock


New (13) Used (19) from $15.53

Seller: book_holders
Rating: 4.5 out of 5 stars 28 reviews
Sales Rank: 303,978

Media: Paperback
Edition: 1
Pages: 832
Number Of Items: 1
Shipping Weight (lbs): 2.4
Dimensions (in): 9.2 x 7 x 1.8

ISBN: 059652028X
Dewey Decimal Number: 005.7585
EAN: 9780596520281
ASIN: 059652028X

Publication Date: February 3, 2009
Availability: Usually ships in 1-2 business days

Features:
  • ISBN13: 9780596520281
  • Condition: New
  • Notes: BUY WITH CONFIDENCE, Over one million books sold! 98% Positive feedback. Compare our books, prices and service to the competition. 100% Satisfaction Guaranteed

Also Available In:

  • Paperback - Programming Entity Framework: Building Data Centric Apps with the ADO.NET Entity Framework

Similar Items:


Editorial Reviews:

Amazon.com Review

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


Product Description
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.





Customer Reviews:
Showing reviews 1-5 of 28



5 out of 5 stars Excellent broad coverage that also goes deep into subjects   February 12, 2009
T. Anderson (PA USA)
20 out of 21 found this review helpful

This is definitely the book to have by your side if you are programming with the ADO.NET Entity Framework 1.0.

The author touches on a ton of subjects that include: Data Binding with Windows Forms and WPF Applications, Using Stored Procedures with the EDM, LINQ to Entities Queries, Customizing Entities, Using the ASP.NET EntityDataSource Control, Using Entities with Web and WCF Services, Using the Entity Framework in n-Tier ASP.NET Applications and n-Tier Client-Side Applications, Handling Entity Framework Exceptions, Performance, Security, Multithreaded Applications, and much more.

There is a lot covered in this book. One of the coolest things about this book is the amount of new possibilities it introduces. Many which I would not have considered without seeing them in this book.

I also like that the book covers the architectural aspects of integrating EF into several different types of architectures.

The author drills into each subject enough to get a thorough understand. With all the material covered, that is rare, but the book is an 800 page whopper.

I have been working with the EF 1.0 since its release in August and can say that this book has more information jammed into it than all the other resources I have been using combined.

The book includes VB.NET and C# code examples.

The book has a support site (google for learnentityframework) with the code samples and the database scripts available. The downloaded code is also in both VB.NET and C#. It is well organized and very usable.

The book is very well organized and is a good read. The author has a good writing style.

All in all, I do not think you can do without this book if you are going to do anything besides play around with the Entity Framework.



5 out of 5 stars A real page turner!   March 1, 2009
D.R.D.D.
6 out of 6 found this review helpful

I'm a seasoned VB6/PHP/Green Screen developer who has floated around .NET but never gone beyond tinkering. Entity Framework (and LINQ and MVC) have convinced me that it's time to jump fully on the .NET wagon.

I'm loving this book because while it assumes the reader knows how to write a program, it doesn't assume that the reader is a .NET programmer. It explains Entity Framework excellently while also explaining Visual Studio/.NET concepts succinctly, without wasting the reader's time explaining what an integer is.

The many pointers to web resources for further information are greatly appreciated and increase the book's value to someone, like me, coming to .NET rather late in the game without bogging down the book for seasoned .NET programmers.

Finally, the author's use of a "brown field" application for the examples, complete with "legacy typos" and examples of how EF can free you of legacy design flaws while leaving the legacy intact show that the author has been in the trenches writing real code and has a great deal of wisdom beyond Entity Framework to share.



5 out of 5 stars Essential & Superb   February 20, 2009
Ward R. Bell (Bay Area, CA)
11 out of 13 found this review helpful

What a wonderful book. Clearly written. Comprehensive. Candid. More than a year in the making and well worth every pound. To be fair, I've just started reading (it arrived only 5 days ago) and I've been dipping in at various points. A more thorough review awaits. But this I know: every few pages I find myself exclaiming "very well said!" or "I didn't know that!"

It happens to me whether I'm reading the introduction to EDM, the discussion of n-tier and Astoria, Entity SQL versus LINQ for Entities, Expression versus Method syntax, stored procedures, views, Defined Queries. All covered simply, correctly, and intelligently. I may have hundreds more pages to discover but I've got my money's worth already and I'm buying copies for the office.

If you are using Entity Framework or think you might want to ... this is the book to own. I'm looking forward to seeing more EF books from other authors but I doubt they can equal or surpass this one.

A quick note of "full disclosure": First, I've met Ms. Lerman once, we've corresponded a few times, but there is no other connection and, as my momma taught me, if I didn't have something nice to say ... I wouldn't have had to say anything at all. Second, I've been working with Entity Framework for almost a year; I'd know if there was any fluff or BS and I have found none.

I'll be back w/ more thoughts soon ... just had to register my thumbs up now.



5 out of 5 stars You gotta learn EF   May 28, 2009
Michael A. Marsh
3 out of 3 found this review helpful

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.



5 out of 5 stars No page wasted   July 8, 2009
Dustin Davis (California)
2 out of 2 found this review helpful

When I first saw this book I was put off by the sheer size of it, but when I started to dig in, I found that every page was full of information and was well organized. It is an easy read and easy to follow the code examples which can be had in both VB and C#. I was a bit worried when she mentioned that she was a VB developer, but she has not favored VB over C# which I appreciate.

Julia covers topics in fine detail where needed but skips the detail when unnecessary or not relevant (or simply says, "You learn more about that in chapter ...") which really helps comprehension. With a wide variety of topics ranging from "Querying entities" to "EF in WCF" it's hard to believe that she makes sure the reader understands what's going on at each turn, but Julia does it. Along the way you are given examples using both Linq to Entities and Entity SQL and she explains any caveats of using either.

Even though she did answer the question, "What is the difference between Linq to SQL and EF", I still find myself wanting more of an answer, but other than that this is a great book and I recommend it to anyone even if it's just as a reference.


Showing reviews 1-5 of 28



Copyright © 2009 Distance Learning Computer Course
ado net  dotnet  dotnet 3 5  entity framework  linq