15.02.2015 Views

C# 4 and .NET 4

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

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

SonTenTs<br />

Database-Specific Classes 819<br />

Using Database Connections 820<br />

Managing Connection Strings 821<br />

Using Connections Efficiently 822<br />

Transactions 824<br />

Comm<strong>and</strong>s 825<br />

Executing Comm<strong>and</strong>s 826<br />

Calling Stored Procedures 829<br />

ast Data access: The Data reader 832<br />

Managing Data <strong>and</strong> relationships: The Dataset Class 835<br />

Data Tables 835<br />

Data Relationships 840<br />

Data Constraints 842<br />

XMl schemas: Generating Code with XsD 844<br />

Populating a Dataset 850<br />

Populating a DataSet Class with a Data Adapter 850<br />

Populating a DataSet from XML 851<br />

Persisting Dataset Changes 852<br />

Updating with Data Adapters 852<br />

Writing XML Output 854<br />

Working with aDo.neT 855<br />

Tiered Development 855<br />

Key Generation with SQL Server 857<br />

Naming Conventions 859<br />

ummary 860<br />

ChaPTer 31: ado.neT enTiTy frameWorK 861<br />

verview of the aDo.neT entity framework 861<br />

ntity framework Mapping 862<br />

Logical Layer 863<br />

Conceptual Layer 864<br />

Mapping Layer 865<br />

ntity Client 866<br />

Connection String 867<br />

Entity SQL 867<br />

ntities 868<br />

bject Context 871<br />

elationships 873<br />

Table per Hierarchy 873<br />

Table per Type 874<br />

Lazy, Delayed, <strong>and</strong> Eager Loading 876<br />

XXXii<br />

www.it-ebooks.info

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

Saved successfully!

Ooh no, something went wrong!