NeoAxis Documentation
NeoAxis Documentation
API Reference
NeoAxis.LiteDB
LiteRepository Class
LiteRepository Methods
Delete<T> Method
DeleteMany Method
Dispose Method
EnsureIndex Method
Fetch Method
Finalize Method
First Method
FirstOrDefault Method
Insert Method
Query<T> Method
Single Method
SingleById<T> Method
SingleOrDefault Method
Update Method
Upsert Method
Lite
Repository
Single
By
Id
T
Method
Search for a single instance of T by Id. Shortcut from Query.SingleById
Namespace:
NeoAxis.LiteDB
Assembly:
NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
Copy
public
T
SingleById
<T>(
BsonValue
id
,
string
collectionName
=
null
)
Parameters
id
BsonValue
collectionName
String
(Optional)
Type Parameters
T
Return Value
T
Implements
ILiteRepository
SingleById
T
(BsonValue, String)
See Also
Reference
LiteRepository Class
NeoAxis.LiteDB Namespace
Translate by Google:
Amharic
Arabic
Bengali
Burmese
Chinese
Dutch
French
German
Hindi
Indonesian
Italian
Japanese
Javanese
Korean
Malay
Nepali
Oriya
Pashto
Polish
Portuguese
Punjabi
Russian
Sindhi
Sinhala
Somali
Spanish
Swahili
Baidu:
Amharic
Arabic
Bengali
Burmese
Chinese
Dutch
French
German
Hindi
Indonesian
Italian
Japanese
Javanese
Korean
Malay
Nepali
Oriya
Pashto
Polish
Portuguese
Punjabi
Russian
Sindhi
Sinhala
Somali
Spanish
Swahili
Copyright 2026 Ivan Efimov