Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
The DataSet Class You use an object of the DataSet class to represent a local copy of the information stored in the database. | The DataSet Class You use an object of the DataSet class to represent a local copy of the information stored in the database. You can make changes to that local copy in your DataSet and then later synchronize those changes with the database through a DataAdapter. A DataSet can represent database structures such as tables rows and columns. You can even add constraints to your locally stored tables to enforce unique and foreign key constraints. Figure 10.1 shows the DataSet and its relationship to some of the objects you can store within it. As you can see from this figure you can store multiple DataTable objects in a DataSet and so on. Figure 10.1 Some of the DataSet objects Table 10.4 shows some of the DataSet properties. Table 10.4 DataSet PROPERTIES PROPERTY TYPE DESCRIPTION CaseSensitive bool Gets or sets a bool value that indicates whether string comparisons within DataTable objects are case-sensitive. DataSetName string Gets or sets the name of the current DataSet object. DefaultViewManager DataViewManager Gets a custom view of the data stored in Table 10.4 DataSet PROPERTIES PROPERTY TYPE DESCRIPTION the DataSet object. You use a view to filter search and navigate the DataSet. EnforceConstraints bool Gets or sets a bool value that indicates whether constraint rules are followed when updating information in the DataSet object. ExtendedProperties PropertyCollection Gets a collection PropertyCollection of user information. You can use the PropertyCollection to store strings with any additional information you want. You use the Add method through ExtendedProperties to add a string. HasErrors bool Gets a bool value that indicates whether there are errors in any of the rows in the tables of the DataSet object. Locale CultureInfo Gets or sets a CultureInfo object for the DataSet. A CultureInfo object contains information about a specific culture including its name writing system and calendar. Namespace string Gets or sets the namespace for the DataSet object. The .