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