Avectra.netFORUM.Data.DataClass

A DataClass contains properties and methods about Data Objects which are represented by Data Objects in the Toolkit or are created in .NET code in Static Facade Classes.

The Avectra.netForum.Data.FacadeClass contains a hash table of one or more DataClass objects, generally one for each database table associated with the Facade Object.

Properties

Properties describing the primary key column name, the currentkey, name of table, etc.

  • DoNotSelect (bool). When true, this data class exists in the facade, but when FacadeClass.SelectByKey is run for DynamicFacade classes, the data will not be selected. This is used when you have a DataClass where you might to use it for inserts, but not subsequent selects. Typically this is only done for secondary DataClasses. This property corresponds to the Do Not Select flag on the Data Object in the Toolkit.

Methods

  • GetDataObject (string szPrefix) - returns the specified DataClass from a FacadeClass.
  • Other methods to select, insert, update and delete a row from a table.

Usage and Examples

Example of working with a specific data object of a FacadeClass object (represented by this):

DataClass _oData = (DataClass)this.GetDataObject("zzz");

See Also

Avectra.netFORUM.Data.DynamicData - subclass of DataClass used to create Data Objects.