KDCalc Class Library

KDCalcDataAdapter Class

A DataAdapter implementation for KDCalc. Represents a set of commands and a connection to an instance of a KDCalcEngine. The KDCalcDataAdapter can be used to fill DataSets and update the data source.

For a list of all members of this type, see KDCalcDataAdapter Members.

System.Object
   MarshalByRefObject
      Component
         DataAdapter
            KDCalcDataAdapter

public class KDCalcDataAdapter : DataAdapter

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The KDCalcDataAdapter serves as a bridge between a DataSet and a KDCalcEngine (.kdc file) for retrieving and saving data. The KDCalcDataAdapter provides this bridge by mapping Fill, which changes the data in the DataSet to match the data in the .kdc file, and Update, which changes the data in the KDCalcEngine to match the data in the DataSet.

Example

KDCalcEngine cEng = new KDCalcEngine();
cEng.FileName = "test.kdc";
DataSet dataSet1 = new DataSet();
DataAdapter dataAdapter1 = new DataAdapter();
dataAdapter1.KDCalcEngine = cEng;
dataAdapter1.Fill(dataSet1);
The user may then make some changes to the DataSet and will then update the KDCalcEngine to reflect the changes.
dataAdapter1.Update(dataSet1);

Requirements

Namespace: KnowledgeDynamics.KDCalc

Assembly: KDCalcNet (in KDCalcNet.dll)

See Also

KDCalcDataAdapter Members | KnowledgeDynamics.KDCalc Namespace