![]() |
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.
|
|
static |
Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.
predicate | A function to test an element for a condition. |
source | The sequence to type as IEnumerable<T>. |
TData | The type of the elements of source. |
ArgumentNullException | predicate is null. |
InvalidOperationException | The sequence is empty. |
TData | : | AzureDocumentDbEntity |