This book is organized in five parts: the first part
explores the basics of Object-Relational Mapping with a brief on all existing
patterns and tools. The second part examines LINQ to SQL from a practical
standpoint, introducing the DataContext class and its behavior, the basics of
DBML mapping options, how to construct relationships, joins and projections.
Part three is the most interesting one, it introduces the Entity Framework with
a fast-paced guide to mapping xml-based infrastructure known as
Conceptual-Mapping-Storage models, which syntax and properties are explained
quite well and formerly created ground-up, the latter wizard-like example is
more suited for beginners who are new in ORMs.
Chapter 6 introduces the ObjectContext class and how to deal
with querying data with method-based and expressions approaches, inserting,
updating and deleting the graph with Object Services. In chapter 7, the book
explains how to manage and map class inheritance; it also introduces the Entity
Client Provider API and how to query against Entity Data Model and Conceptual
Model. Part four, illustrates with a use case approach, how to apply the topics
of the preceding chapters in a practical example in which a domain model is
mapped in a top-down manner. Chapter 10 and 11 concentrates concepts like
top-down mapping approach, Persistence Ignorance (which is not supported by EF
yet), Object Context and DTO's. The last chapter compares LINQ to SQL, Entity
Framework and all other non MS options on the market, explaining their
differences and why each of them fits better in different scenarios, the author
put all these ORMs on the same scale, evaluating their features against a set
of criteria used to score a good ORM tool.