MultiObjectQueryBaseTQuery, TInnerQuery, TObjectFirstObject Property |
Note: This API is now obsolete.
Namespace: CMS.DataEngine
[ObsoleteAttribute("Use System.Linq.Enumerable.FirstOrDefault<TSource>(this System.Collections.Generic.IEnumerable<TSource>) extension method instead.")] 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).