Oreilly.Programming.Entity.Framework.2nd.Edition.pdf

(12264 KB) Pobierz
w w w r e e - e b o o k s - d o w n l o a d . o r g
Download from Library of Wow! eBook <www.wowebook.com>
1032808985.002.png
Download from Library of Wow! eBook <www.wowebook.com>
1032808985.003.png
SECOND EDITION
Programming Entity Framework
w w w r e e - e b o o k s - d o w n l o a d . o r g
Julia Lerman
Beijing
Cambridge
Farnham
Köln
Sebastopol
Taipei
Tokyo
Download from Library of Wow! eBook <www.wowebook.com>
1032808985.004.png
Programming Entity Framework, Second Edition
by Julia Lerman
Copyright © 2010 Julia Lerman. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions
are also available for most titles ( http://my.safaribooksonline.com ) . For more information, contact our
corporate/institutional sales department: 800-998-9938 or corporate@oreilly.com .
Editors: Mike Hendrickson and Laurel Ruma
Production Editor: Loranah Dimant
Copyeditor: Audrey Doyle
Proofreader: Sada Preisch
Indexer: Ellen Troutman Zaig
Cover Designer: Karen Montgomery
Interior Designer: David Futato
Illustrator: Robert Romano
Printing History:
February 2009:
First Edition.
August 2010:
Second Edition.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of
O’Reilly Media, Inc. Programming Entity Framework , the image of a Seychelles blue pigeon, and related
trade dress are trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc., was aware of a
trademark claim, the designations have been printed in caps or initial caps.
.NET is a registered trademark of Microsoft Corporation.
While every precaution has been taken in the preparation of this book, the publisher and author assume
no responsibility for errors or omissions, or for damages resulting from the use of the information con-
tained herein.
ISBN: 978-0-596-80726-9
[SB]
1281106344
Download from Library of Wow! eBook <www.wowebook.com>
Table of Contents
Foreword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi
w w w r e e - e b o o k s - d o w n l o a d . o r g
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii
1.
Introducing the ADO.NET Entity Framework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
The Entity Relationship Model: Programming Against a Model,
Not the Database
2
The Entity Data Model: A Client-Side Data Model
3
Entities: Blueprints for Business Classes
6
The Backend Database: Your Choice
7
Database Providers
8
Access and ODBC
9
Entity Framework Features: APIs and Tools
9
Metadata
10
Entity Data Model Design Tools
10
Object Services
11
POCO Support
12
Change Tracking
12
Relationship Management and Foreign Keys
13
Data Binding
13
n-Tier Development
14
EntityClient
14
The Entity Framework and WCF Services
15
What About ADO.NET DataSets and LINQ to SQL?
15
DataSets
15
LINQ to SQL
16
Entity Framework Pain Points Are Fading Away
16
Programming the Entity Framework
17
2.
Exploring the Entity Data Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Why Use an Entity Data Model?
19
iii
Download from Library of Wow! eBook <www.wowebook.com>
1032808985.005.png 1032808985.001.png
Zgłoś jeśli naruszono regulamin