Chapter 2
Accessing Data
IN THIS CHAPTER
Understanding the System.Data
namespace
Connecting to a data source
Working with data from databases
Not to predispose you to the contents of this chapter, but you'll probably find that data access is the most important part of your use of the .NET Framework. You’ll likely use the various features of the System.Data
namespace more than any other namespace.
Unquestionably, one of the most common uses of Visual Studio is the creation of business applications. Business applications are about data. This is the black and white of development with Visual Studio. Understanding a little of everything is important, but complete understanding of the System.Data
namespace is essential when you're building business applications.
Until the .NET Framework became popular in the 2003 time frame, most business applications built using Microsoft products used FoxPro or Visual Basic. C# has unquestionably replaced those languages as the business programmer’s language of choice over the years. You can look at the data tools in C# in three ways:
- Database connectivity: Getting information out of and into a database is a primary part of the
System.Data
namespace. ...
Get C# 10.0 All-in-One For Dummies now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.