03.11.2016 Views

Beginning ASP.NET 4.5 in CSharp and VB Opsylum

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

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

CONTENTS<br />

S<strong>in</strong>gle Item Controls 455<br />

Pag<strong>in</strong>g Controls 455<br />

Data Source Controls 456<br />

Other Data Controls 456<br />

Data Source <strong>and</strong> Data-bound Controls<br />

Work<strong>in</strong>g Together 456<br />

Display<strong>in</strong>g <strong>and</strong> Edit<strong>in</strong>g Data with GridView 456<br />

Insert<strong>in</strong>g Data with DetailsView 463<br />

Stor<strong>in</strong>g Your Connection Str<strong>in</strong>gs <strong>in</strong> Web.config 464<br />

Filter<strong>in</strong>g Data 466<br />

Customiz<strong>in</strong>g the Appearance of the Data Controls 472<br />

Configur<strong>in</strong>g Columns or Fields of Data-bound Controls 473<br />

Updat<strong>in</strong>g <strong>and</strong> Insert<strong>in</strong>g Data 479<br />

Us<strong>in</strong>g DetailsView to Insert <strong>and</strong> Update Data 479<br />

Practical Tips for Display<strong>in</strong>g <strong>and</strong> Updat<strong>in</strong>g Data 493<br />

Summary 494<br />

CHAPTER 14: LINQ AND THE ADO.<strong>NET</strong> ENTITY<br />

FRAMEWORK 497<br />

Introduc<strong>in</strong>g LINQ 498<br />

LINQ to Objects 499<br />

LINQ to XML 499<br />

LINQ to ADO.<strong>NET</strong> 499<br />

Introduc<strong>in</strong>g the ADO.<strong>NET</strong> Entity Framework 500<br />

Mapp<strong>in</strong>g Your Data Model to an Object Model 501<br />

Introduc<strong>in</strong>g Query Syntax 507<br />

St<strong>and</strong>ard Query Operators 507<br />

Select 508<br />

From 508<br />

Order By 508<br />

Where 509<br />

Sum, M<strong>in</strong>, Max, Average, <strong>and</strong> Count 509<br />

Take, Skip, TakeWhile, <strong>and</strong> SkipWhile 509<br />

S<strong>in</strong>gle <strong>and</strong> S<strong>in</strong>gleOrDefault 510<br />

First, FirstOrDefault, Last, <strong>and</strong> LastOrDefault 511<br />

Shap<strong>in</strong>g Data with Anonymous Types 511<br />

xxv

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

Saved successfully!

Ooh no, something went wrong!