ObjectQueryBaseTQuery, TObjectFirstObject Property |
Namespace: CMS.DataEngine
public TObject FirstObject { get; }
Accessing this property effectively results in performing the query (i.e. fetching all rows the query selects, if not already fetched) and returning the first object from the query result DataSet.
To limit the number of fetched rows use TopN(Int32).