RecordClass Class |
This is a 'base' class for type strong SQL table record objects. RecordClass is a MustInherit class, only classes derived from RecordClass can access member of this class.
RecordClass has tree constructors. New(), New(DataRow) and New(IDataReader). Derived classes MUST call one of these constructors, typically using a MyBase.New(?) call.
Namespace: Dynamicweb.News
The RecordClass type exposes the following members.
Name | Description | |
---|---|---|
RecordClass |
Initializes a new instance of the RecordClass class.
| |
RecordClass(DataRow) |
Constructor that takes a DataRow as a input parameter. Assignment itself is done
in the Sub AssignAllRow. The property Row contains the datarepresentation at the
time of construction. Assignment of the derived classes properties in general use
beyound the constructor is NOT reflected in the DataRow property Row.
| |
RecordClass(IDataReader) |
Constructor that takes a Datareader as a input parameter. Assignment itself is done
in the Sub AssignAllReader. The DataRow property Row is not assigned any values sinces
the IDataReader does not represent its data as a DataRow object.
|
Name | Description | |
---|---|---|
Row |
This property handles the DataRow that the parrentclass assign when using the
New(DataRow) constructor
|
Name | Description | |
---|---|---|
AssignAllReader |
AssignAllReader is defined Overridable and is supposed to be overriden in the subclass
| |
AssignAllRow |
AssignAllRow is defined Overridable and is supposed to be overriden in the subclass
| |
FieldExists(DataRow, String) |
Examines the DataRow (rwDataRow) passed in for the existance of strName. If the field
exists and the field is 'something' as opposed to 'not Nothing' the function returns true.
AssignAllRow for an example.
| |
FieldExists(IDataReader, String) |
Examines the IDataReader (drDataReader) passed in for the existance of strName. If the field
exists and the field is 'something' as opposed to 'not Nothing' the function returns true.
AssignAllReader for an example.
|
Public Class TemplateClass Inherits RecordClass Private _TemplateID As System.Int32 Property TemplateID() As System.Int32 Get Return _TemplateID End Get Set(ByVal Value As System.Int32) _TemplateID = Value End Set End Property ' implementation details ... End Class