Loads this object with the object's fields and properties with the fields from the database.
Automatically sets the IDatabaseObject.DistinctValue and IDatabaseObject.IsSaved properties so that the
object is correctly initialized.
Onforwards a call to Database.ObjectLoad()
Namespace: DatabaseObjectsAssembly: DatabaseObjects (in DatabaseObjects.dll) Version: 3.8.1.0
Syntax
C# |
---|
protected void Load( IDataReader objData ) |
Visual Basic |
---|
Protected Sub Load ( _ objData As IDataReader _ ) |
Visual C++ |
---|
protected: void Load( IDataReader^ objData ) |
Parameters
- objData
- Type: System.Data..::..IDataReader
[Missing <param name="objData"/> documentation for "M:DatabaseObjects.DatabaseObject.Load(System.Data.IDataReader)"]
Remarks
Typically used from within the overridden LoadFields function when completely loading and initializing an
IDatabaseObject object from the database fields. This is different to LoadFieldsForObject in
that the IDatabaseObject.DistinctValue and IDatabaseObject.IsSaved properties are not initialized.
Furthermore the object typically does not implement IDatabaseObject
and therefore these properties cannot be set.
Onforwards a call to Database.ObjectLoad()