'Declaration Protected Overloads Function ReadObject( _ ByVal reader As IDataReader, _ ByVal binding As ScheduleDataBinding _ ) As Object
protected object ReadObject( IDataReader reader, ScheduleDataBinding binding )
Inheritors implementing their own operations on a custom data provider would invoke ReadRecord within the loop that calls Read on reader until the result set of an SQL command has been exhausted. Each call binds the database record to a new instance of a corresponding WebSchedule class by calling the CreateInstance method on binding.
The instance of the ScheduleDataBinding passed to binding must match the one a custom data provider has registered by calling Add (or AddRange) on DataBindings. If the same object reference is not found in DataBindings as is passed to the ReadRecord method, then metadata describing how data binding between the data model and object model should be performed will not be found, and this method fails. This metadata is cached the first time a particular ScheduleDataBinding gets added to the DataBindings collection because the initial map generation between object and data models is a relatively costly operation. Therefore, changes made to the ScheduleDataBinding instance between the time it was first added to the DataBindings and the time ReadRecord is called may not be reflected by the data bind.
ReadObjectTarget Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2