Convenience method to return a single instance that matches
the query, or null if the query returns no results.
Namespace: NHibernate
Assembly: NHibernate (in NHibernate)
Version: 1.2.0.4000
Syntax
| Visual Basic (Declaration) |
|---|
Function UniqueResult As Object |
| C# |
|---|
Object UniqueResult () |
| Visual C++ |
|---|
Object^ UniqueResult () |
Return Value
the single result or nullNothingnullptr
Exceptions
| Exception | Condition |
|---|---|
| NHibernate.HibernateException |
Thrown when there is more than one matching result.
|