Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Week: 1 At a Glance > DataSet Internals

Day 4. DataSet Internals

As you'll recall, yesterday's goal was to familiarize you with the various ways that you can manipulate DataSet objects when dealing with disconnected data. Today you'll dig deeper into the structure of the DataSet in order to fully exploit its capabilities to maintain data consistency and integrity. In fact, the three key topics in this chapter explore the three children of the DataSet class: Tables, Relations, and ExtendedProperties exposed as properties as shown in Figure 3.1. Much of the functionality of the DataSet is encapsulated in the objects of these three children.

Specifically, today you'll learn the following concepts:

  • The classes used to represent tables, relationships, and properties in a DataSet

  • How to create expression columns in a DataTable

  • How to specify default values and set other properties of columns

  • How to define and add unique, foreign, and primary key constraints to a DataTable

  • How to generate primary keys on the client to be used in a database

  • How to use extended properties


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial