Chapter 2: Data Components in Visual Studio .NET

In the previous chapter, you saw the basics of the ADO.NET model and its components and how they are connected to each other in the ADO.NET architecture. The Visual Studio .NET (VS .NET) Integrated Development Environment (IDE) provides design-time support to work with data components. In this chapter, you'll learn how to use these data components in the VS .NET IDE at design-time to create database applications. Using ADO.NET components (also referred to as data components) is similar to using any Windows control. You just drag the component from the Toolbox to a form, set its properties and methods, and you're up and running.

We start this chapter with the Server Explorer, a useful tool for creating database applications. We focus on developing database applications quickly using data components in VS .NET without writing a lot of code. We also provide a step-by-step tutorial to help you develop and run a project. After that, we discuss the Connection, DataAdapter, Command, DataSet, and DataView components in more detail. After finishing this chapter, you'll have a good understanding of data components and how to work with them in VS .NET.

Creating an ADO.NET Project

Begin your project by launching the VS .NET IDE and choosing New Project from the Project menu. Choose Visual Basic Projects from Project Types and then pick the Windows Application template. If you like, type an appropriate name into the Name field for your first ADO.NET application and click OK. Our project name is MyFirstADONetApp.

Applied ADO. NET(c) Building Data-Driven Solutions
Applied ADO.NET: Building Data-Driven Solutions
ISBN: 1590590732
EAN: 2147483647
Year: 2006
Pages: 214 © 2008-2017.
If you may any questions please contact us: