ObjectByOrdinalFirst returns the first object in the collection respectively
filtered and sorted by the collection's IDatabaseObjects.Subset and
IDatabaseObjects.OrderBy values. It differs from ObjectByOrdinal in that it only
loads the first record from the database table not the entire table.
Namespace: DatabaseObjectsAssembly: DatabaseObjects (in DatabaseObjects.dll) Version: 3.8.1.0
Syntax
C# |
---|
public IDatabaseObject ObjectByOrdinalFirst( IDatabaseObjects objCollection ) |
Visual Basic |
---|
Public Function ObjectByOrdinalFirst ( _ objCollection As IDatabaseObjects _ ) As IDatabaseObject |
Visual C++ |
---|
public: IDatabaseObject^ ObjectByOrdinalFirst( IDatabaseObjects^ objCollection ) |
Parameters
- objCollection
- Type: DatabaseObjects..::..IDatabaseObjects
The collection which contains the object.
Return Value
IDatabaseObject (DatabaseObjects.IDatabaseObject)Examples
CopyC#
'Ideal for loading default objects Dim objDefaultSupplier As Supplier = objDatabase.ObjectByOrdinalFirst(objGlobalSuppliersInstance)