CQRS.NET  2.2
A lightweight enterprise framework to write CQRS, event-sourced and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.

◆ First< TData >() [1/2]

static TData System.Linq.AzureDocumentDbDataStoreExtensions.First< TData > ( this AzureDocumentDbDataStore< TData >  source)
static

Returns the first element of the sequence.

Parameters
sourceThe sequence to type as IEnumerable<T>.
Template Parameters
TDataThe type of the elements of source.
Returns
The first element of the sequence.
Exceptions
InvalidOperationExceptionThe sequence contains more than one element, or the sequence is empty.
Type Constraints
TData :AzureDocumentDbEntity