Finds an object instance by a unique ID for T
Namespace: Castle.ActiveRecord
Assembly: Castle.ActiveRecord (in Castle.ActiveRecord.dll)
Version: 1.0.3.0
Syntax
Parameters
- id
- Object
ID value
- throwOnNotFound
- Boolean
true if you want to catch an exception if the object is not found
Return Value
A T
Exceptions
| Exception | Condition |
|---|---|
| ObjectNotFoundException | if throwOnNotFound is set to true and the row is not found |
See Also
Castle.ActiveRecord Namespace