Initializes an existing object with values from a set of database fields.
Specifically, sets the IDatbaseObject.IsSaved property to true,
sets the IDatbaseObject.DistinctValue using the provided data and
calls IDatbaseObject.LoadFields().
Namespace: DatabaseObjectsAssembly: DatabaseObjects (in DatabaseObjects.dll) Version: 3.8.1.0
Syntax
C# |
---|
public static void ObjectLoad( IDatabaseObjects objCollection, IDatabaseObject objItem, IDataReader objData ) |
Visual Basic |
---|
Public Shared Sub ObjectLoad ( _ objCollection As IDatabaseObjects, _ objItem As IDatabaseObject, _ objData As IDataReader _ ) |
Visual C++ |
---|
public: static void ObjectLoad( IDatabaseObjects^ objCollection, IDatabaseObject^ objItem, IDataReader^ objData ) |
Parameters
- objCollection
- Type: DatabaseObjects..::..IDatabaseObjects
The collection associated with the field values. This is not used to create an object - but to set the distinct field for the object using the IDatabaseObjects.DistinctFieldName property.
- objItem
- Type: DatabaseObjects..::..IDatabaseObject
[Missing <param name="objItem"/> documentation for "M:DatabaseObjects.Database.ObjectLoad(DatabaseObjects.IDatabaseObjects,DatabaseObjects.IDatabaseObject,System.Data.IDataReader)"]
- objData
- Type: System.Data..::..IDataReader
The data container that contains the data to be copied into the object.