04.07.2013 Views

Programming Entity Framework - Cdn.oreilly.com

Programming Entity Framework - Cdn.oreilly.com

Programming Entity Framework - Cdn.oreilly.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Custom Properties That Perform Calculations on Child Collections 267<br />

Overloading Context and <strong>Entity</strong> Methods 268<br />

Partial Classes Are for More Than Just Overriding Existing Methods<br />

and Events 269<br />

Custom Code Generation 269<br />

Creating Common Methods or Properties for All Entities 269<br />

Summary 270<br />

11. Using the ASP.NET <strong>Entity</strong>DataSource Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271<br />

Getting to First Base with the <strong>Entity</strong>DataSource Control and Flat Data 272<br />

Creating the Hello Entities Project 272<br />

Creating a GridView and an <strong>Entity</strong>DataSource Concurrently 273<br />

Configuring an <strong>Entity</strong>DataSource Through Its Wizard 274<br />

Formatting the GridView 276<br />

Testing the Web Application 277<br />

Understanding How the <strong>Entity</strong>DataSource Is Able to Retrieve and Update<br />

Your Data 278<br />

<strong>Entity</strong>DataSource and Its Query 278<br />

<strong>Entity</strong>DataSource and Its ObjectContext 279<br />

<strong>Entity</strong>DataSource Context Events 280<br />

<strong>Entity</strong>DataSource and ViewState 281<br />

Working with Related <strong>Entity</strong>Reference Data 282<br />

Using <strong>Entity</strong>DataSource.Include to Get Related Data 283<br />

Displaying Data That Comes from <strong>Entity</strong>Reference Navigation<br />

Properties 284<br />

Using a New <strong>Entity</strong>DataSource Control to Enable Editing of<br />

<strong>Entity</strong>Reference Navigation Properties 285<br />

Editing <strong>Entity</strong>References That Cannot Be Satisfied with a Drop-Down<br />

List 287<br />

Binding an <strong>Entity</strong>DataSource to Another Control with<br />

WhereParameters 287<br />

Editing Related Data Concurrently with Multiple <strong>Entity</strong>DataSource<br />

Controls 289<br />

Working with Hierarchical Data in a Master/Detail Form 290<br />

Setting Up the Web Application 290<br />

Specifying Your Own <strong>Entity</strong> SQL Query Expression for an <strong>Entity</strong>Data-<br />

Source 291<br />

Binding a DropDownList to an <strong>Entity</strong>DataSource Control 292<br />

Creating a Parent <strong>Entity</strong>DataSource That Is Controlled by the Drop-<br />

DownList and Provides Data to a DetailsView 293<br />

Using the <strong>Entity</strong>DataSource.Where Property to Filter Query Results 294<br />

Displaying Read-Only Child Data Through the Parent <strong>Entity</strong>DataSource 294<br />

Table of Contents | xi

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!