SqlSet<TResult>.Single Method
The single element of the set.
Namespace: DbExtensions
Assembly: DbExtensions.dll
Syntax
public TResult Single()
Return Value
Type: TResult
The single element of the set.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The set contains more than one element.-or-The set is empty. |