Chapter 25. Querying Information in a Database

After completing this chapter, you will be able to:

  • Fetch and display data from a Microsoft SQL Server database by using Microsoft ADO.NET.

  • Define entity classes for holding data retrieved from a database.

  • Use LINQ to SQL to query a database and populate instances of entity classes.

  • Create a custom DataContext class for accessing a database in a typesafe manner.

In Part IV of this book, you learned how to use Microsoft Visual C# to build user interfaces and present and validate information. In Part V, you will learn about managing data by using the data access functionality available in Microsoft Visual Studio 2010 and the Microsoft .NET Framework. The chapters in this part of the book describe ADO.NET, ...

Get Microsoft® Visual C#® 2010 Step by Step now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.