Murach's ADO.NET 3.5, LINQ,
and the Entity Framework with C# 2008

How to create an Entity Data Model

The Entity Framework, new in ADO.NET 3.5, provides another way to work with data in database applications. To use it, you create an Entity Data Model that defines a conceptual model for the business objects used by an application, a storage model for the objects in a database, and mappings that relate the two. This chapter shows you how to do that.

Chapter 17 How to create an Entity Data Model
An introduction to the Entity Framework 544
How the Entity Framework works 544
Three techniques for performing query operations 544
How to use the Entity Data Model Wizard 546
How to start the wizard 546
How to choose the model contents 546
How to choose a data connection 546
How to choose the database objects 548
The Entity Data Model 550
The generated code 552
How to use the Entity Data Model Designer 558
Basic skills for using the designer 558
How to use the Model Browser window 560
How to use the Mapping Details window 562
How to add a stored procedure that retrieves data 564
How to add stored procedures that insert, update, and delete data 566
How to update an Entity Data Model 568
How to customize an Entity Data Model 570
How to use partial classes 570
How to modify the XML 572




Murach's ADO.NET 3.5 with C# 2008

Learn more about this book

View the table of contents


More about the eBook



Our 100% Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a prompt refund...no questions asked.