DATASET OBJECT
• The DataSet class implements three important interfaces:
1. IlistSource makes it possible to return a data-bound list of elements
2. ISerializable make the class capable of controlling how its data is serialized to a .net formatter
3. IXMLSerializable guarantees the class can serialize itself to XML
==================================================
IMPORTANT METHODS OF THE DATASET CLASS
AcceptChanges / RejectChanges >>Commit and Rollback for changes made to data in the DataSet
HasChanges / GetChanges >> GetChanges returns a dataset containing changed rows
Clone >> Copies the structure (schemas,relations) only, but NOT DATA
Copy >> Makes a deep copy, it is CLONING WITH DATA
Merge >> Merge an ADO.net object with current DataSet
ReadXml >> Populate the DataSet by reading schema and data from XML doc
Clear / Reset >> Remove all rows / Empties tables, relations and constraints
No comments:
Post a Comment