Click or drag to resize

RecordClassAssignAllReader Method

AssignAllReader is defined Overridable and is supposed to be overriden in the subclass

Namespace:  Dynamicweb.News
Assembly:  Dynamicweb.News (in Dynamicweb.News.dll) Version: 1.0.10
Syntax
public virtual void AssignAllReader(
	IDataReader drReader
)

Parameters

drReader
Type: System.DataIDataReader
IDataReader that contains data to assign to the type strong object
Remarks
Examples
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

    Overrides Sub AssignAllReader(ByVal drTemplate As IDataReader)
        If FieldExists(drTemplate, "TemplateID") Then _
             TemplateID = CType(drTemplate("TemplateID"), System.Int32)
    End sub

End Class
See Also