03.01.2015 Views

C# 5.0 Programmer's Reference

Visual Studio 2013 C# 5.0 Programmer's Reference

Visual Studio 2013 C# 5.0 Programmer's Reference

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.

23<br />

ADO.NET<br />

What’s in This Chapter<br />

➤➤<br />

➤➤<br />

➤➤<br />

➤➤<br />

➤➤<br />

Connecting to databases<br />

Bound controls<br />

DataGridView, DataGrid, and detail interfaces<br />

DataSets<br />

ADO.NET<br />

Wrox.com Downloads for This Chapter<br />

Please note that all the code examples for this chapter are available as a part of this chapter’s<br />

code download on the book’s website at www.wrox.com/go/csharp5programmersref on the<br />

Download Code tab.<br />

Databases play an important role in many software applications. A large percentage of business<br />

applications use databases to store, arrange, and otherwise manipulate data.<br />

Because databases play such an important role in so many programs, companies such as<br />

Microsoft have spent a huge amount of time building database tools. As a consequence,<br />

there are several methods you can use to work with databases. Some of the most recent<br />

methods include the Entity Framework and LINQ to ADO.NET, which includes LINQ to<br />

SQL, LINQ to Entities, and LINQ to DataSet. Those techniques were covered briefly in<br />

Chapter 8, “LINQ.”<br />

This chapter provides a brief introduction to ADO.NET, a set of classes that provide more<br />

direct access to the underlying database. It also shows how you can use bound database components<br />

and controls to quickly build simple applications that let you create, edit, and delete<br />

database records.<br />

www.it-ebooks.info

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

Saved successfully!

Ooh no, something went wrong!