Click or drag to resize

LiteRepositorySingleByIdT Method

Search for a single instance of T by Id. Shortcut from Query.SingleById

Namespace: Internal.LiteDB
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public T SingleById<T>(
	BsonValue id,
	string collectionName = null
)

Parameters

id  BsonValue
 
collectionName  String  (Optional)
 

Type Parameters

T

Return Value

T

Implements

ILiteRepositorySingleByIdT(BsonValue, String)
See Also