The IDataParameter InterfaceCreate, Retrieve, Update, and Delete (CRUD) commands are usually parameter driven. For example, retrieving data from a database often involves passing identity information to indicate which records in the particular data source need to be selected. The IDataParameter interface defines the methods that a .NET managed data provider must implement to pass parameters to its specific data source. The XmlFileParameter class implements the IDataParameter interface for the .NET managed data provider for XML files. The excerpt in Listing B.1 shows the code for this class that implements the IDataParameter interface for the .NET managed data provider for XML files. Listing B.1. XmlFileParameter Class Implements IDataParameter
|