ILiteRepositorySingleByIdT Method |
Search for a single instance of T by Id. Shortcut from Query.SingleById
Namespace: Internal.LiteDBAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
SyntaxT SingleById<T>(
BsonValue id,
string collectionName = null
)
Parameters
- id BsonValue
-
- collectionName String (Optional)
-
Type Parameters
- T
Return Value
T
See Also