ObjectByOrdinalFirst returns the first object in the collection respectively
filtered and sorted by the collection's Subset and OrderBy values. It differs
from ObjectByOrdinal in that it only loads the first record from the database
table not the entire table.
Namespace: DatabaseObjects.GenericAssembly: DatabaseObjects (in DatabaseObjects.dll) Version: 3.8.1.0
Syntax
C# |
---|
protected T ObjectByOrdinalFirst() |
Visual Basic |
---|
Protected Function ObjectByOrdinalFirst As T |
Visual C++ |
---|
protected: T ObjectByOrdinalFirst() |
Return Value
IDatabaseObject (DatabaseObjects.IDatabaseObject)Examples
CopyC#
'Assuming this class is the Suppliers class 'Ideal for loading default objects Dim objDefaultSupplier As Supplier = MyBase.ObjectByOrdinalFirst