Creates and initializes an object from the current record of a DataRow object.

Namespace: DatabaseObjects
Assembly: DatabaseObjects (in DatabaseObjects.dll) Version: 3.8.1.0

Syntax

C#
public static IDatabaseObject ObjectFromDataRow(
	IDatabaseObjects objCollection,
	DataRow objRow
)
Visual Basic
Public Shared Function ObjectFromDataRow ( _
	objCollection As IDatabaseObjects, _
	objRow As DataRow _
) As IDatabaseObject
Visual C++
public:
static IDatabaseObject^ ObjectFromDataRow(
	IDatabaseObjects^ objCollection, 
	DataRow^ objRow
)

Parameters

objCollection
Type: DatabaseObjects..::..IDatabaseObjects
The collection associated with the IDataReader object.
objRow
Type: System.Data..::..DataRow
The data to be copied into a new IDatabaseObject object.

Return Value

IDatabaseObject (DatabaseObjects.IDatabaseObject)

See Also